* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;

    min-height: 100vh;

    font-family: "DM Sans", sans-serif;

    background: #f5f6fa;

    color: #222;
}

.auth-shell {
    width: min(1100px, calc(100% - 40px));

    min-height: 620px;

    margin: 40px auto;

    display: grid;

    grid-template-columns: 48% 52%;

    background: #ffffff;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .10);
}

.brand-panel {
    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 60px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #951c31,
            #6f1022
        );

    color: #ffffff;
}

.brand {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    margin-bottom: 65px;

    text-decoration: none;
}

.brand-logo {
    width: 280px;

    height: auto;

    display: block;

    object-fit: contain;

    filter: brightness(0) invert(1);
}

.brand small {
    display: block;

    margin-top: 2px;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 1px;

    text-transform: uppercase;

    opacity: .8;
}

.brand-copy {
    max-width: 440px;
}

.eyebrow {
    margin: 0 0 14px;

    color: #a02034;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.6px;
}

.brand-panel .eyebrow {
    color: #ffd166;
}

.brand-copy h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: 40px;

    line-height: 1.15;

    font-weight: 800;
}

.brand-copy > p:last-child {
    max-width: 410px;

    margin: 0;

    color: rgba(255,255,255,.84);

    font-size: 14px;

    line-height: 1.8;
}

.form-panel {
    display: flex;

    align-items: center;

    justify-content: center;

    padding: 55px 65px;

    background: #ffffff;
}

.form-wrap {
    width: 100%;

    max-width: 420px;
}

.mobile-brand {
    display: none;

    align-items: center;

    gap: 9px;

    margin-bottom: 35px;

    color: #8b1e2d;

    font-weight: 700;

    text-decoration: none;
}

.form-wrap > .eyebrow {
    color: #8b1e2d;
}

.form-wrap h2 {
    margin: 0 0 10px;

    color: #8b1e2d;

    font-family: "Playfair Display", serif;

    font-size: 34px;

    line-height: 1.2;

    font-weight: 800;
}

.form-intro {
    margin: 0 0 30px;

    color: #777;

    font-size: 14px;

    line-height: 1.7;
}

#forgotForm {
    width: 100%;
}

#forgotForm label {
    display: block;

    margin-bottom: 8px;

    color: #222;

    font-size: 13px;

    font-weight: 600;
}

#forgotForm input {
    width: 100%;

    height: 52px;

    padding: 0 16px;

    border: 1px solid #dedede;

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: #222;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    transition: .2s ease;
}

#forgotForm input::placeholder {
    color: #aaa;
}

#forgotForm input:focus {
    border-color: #8b1e2d;

    box-shadow:
        0 0 0 3px rgba(139,30,45,.08);
}

.field-error {
    min-height: 18px;

    margin: 6px 0 8px;

    color: #c62828;

    font-size: 12px;
}

.primary-button {
    width: 100%;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 11px;

    background: #8b1e2d;

    color: #ffffff;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    font-weight: 650;

    cursor: pointer;

    transition: .25s ease;
}

.primary-button span {
    font-size: 18px;

    transition: .25s ease;
}

.primary-button:hover {
    background: #741724;

    transform: translateY(-1px);
}

.primary-button:hover span {
    transform: translateX(4px);
}

.auth-switch {
    margin: 25px 0 0;

    text-align: center;

    font-size: 13px;
}

.auth-switch a {
    color: #8b1e2d;

    font-weight: 650;

    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.toast-container {
    position: fixed;

    right: 24px;

    bottom: 24px;

    z-index: 9999;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

@media (max-width: 850px) {

    .auth-shell {
        grid-template-columns: 1fr;

        width: min(600px, calc(100% - 30px));

        min-height: auto;

        margin: 25px auto;
    }

    .brand-panel {
        min-height: 330px;

        padding: 45px;
    }

    .brand {
        margin-bottom: 35px;
    }

    .brand-copy h1 {
        font-size: 32px;
    }

    .form-panel {
        padding: 45px;
    }

}

@media (max-width: 550px) {

    .auth-shell {
        width: calc(100% - 20px);

        margin: 10px auto;

        border-radius: 18px;
    }

    .brand-panel {
        min-height: 280px;

        padding: 30px;
    }

    .brand {
        margin-bottom: 25px;

        font-size: 21px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;

        font-size: 17px;
    }

    .brand-copy h1 {
        font-size: 27px;
    }

    .brand-copy > p:last-child {
        font-size: 13px;
    }

    .form-panel {
        padding: 35px 25px;
    }

    .form-wrap h2 {
        font-size: 29px;
    }

    .mobile-brand {
        display: flex;
    }

}
