@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --auth-ivory: #fbf8f4;
    --auth-blush: #f4e8e5;
    --auth-pink: #d9aaa6;
    --auth-rose: #a96f70;
    --auth-ink: #37312f;
    --auth-muted: #89817d;
    --auth-border: #eee5e0;
    --auth-white: #fff;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--auth-ivory);
    color: var(--auth-ink);
    font-family: 'DM Sans', sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px clamp(32px, 6vw, 100px);
    background:
        radial-gradient(ellipse at 15% 15%, rgba(255,255,255,.95), transparent 38%),
        radial-gradient(ellipse at 90% 85%, rgba(225,190,184,.38), transparent 42%),
        linear-gradient(145deg, #f7eeea 0%, #f2e4df 52%, #eee3df 100%);
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(169,111,112,.16);
    border-radius: 50%;
    pointer-events: none;
}

.auth-showcase::before {
    width: 440px;
    height: 440px;
    right: -170px;
    top: 12%;
}

.auth-showcase::after {
    width: 300px;
    height: 300px;
    right: -100px;
    top: 22%;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-ink);
    text-decoration: none;
    width: fit-content;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(169,111,112,.4);
    border-radius: 50%;
    color: var(--auth-rose);
    font-family: 'Playfair Display', serif;
    font-size: 19px;
}

.auth-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    letter-spacing: .04em;
}

.auth-editorial {
    position: relative;
    z-index: 1;
    max-width: 590px;
    padding: 55px 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--auth-rose);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--auth-pink);
}

.auth-editorial h1 {
    margin: 0 0 24px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -.035em;
}

.auth-editorial h1 em {
    color: var(--auth-rose);
    font-weight: 400;
}

.auth-editorial p {
    max-width: 410px;
    margin: 0;
    color: #776e69;
    font-size: 15px;
    line-height: 1.9;
}

.auth-showcase-footer {
    position: relative;
    z-index: 1;
    color: #8d817c;
    font-size: 12px;
    letter-spacing: .04em;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(24px, 5vw, 76px);
    background: rgba(255,255,255,.72);
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-mobile-brand {
    display: none;
}

.auth-heading {
    margin-bottom: 32px;
}

.auth-heading .auth-eyebrow {
    margin-bottom: 12px;
}

.auth-heading h2 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(34px, 4vw, 43px);
    font-weight: 500;
    letter-spacing: -.025em;
}

.auth-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.7;
}

.auth-alert {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #edcfca;
    border-radius: 10px;
    background: #fff7f5;
    color: #985d5b;
    font-size: 13px;
    line-height: 1.6;
}

.auth-alert-success {
    border-color: #d8e6d9;
    background: #f5faf4;
    color: #527d58;
}

.auth-form-group {
    margin-bottom: 19px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 9px;
    color: #514946;
    font-size: 13px;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input::placeholder {
    color: #b4aaa5;
}

.auth-input:focus {
    border-color: #c99591;
    box-shadow: 0 0 0 3px rgba(201,149,145,.13);
}

.auth-input.is-invalid {
    border-color: #d78c87;
}

.auth-field-error {
    margin-top: 7px;
    color: #b75f5b;
    font-size: 12px;
}

.auth-password-input {
    padding-right: 54px;
}

.auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #998c86;
    font-size: 12px;
    cursor: pointer;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: #a87573;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .025em;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    background: #956664;
    box-shadow: 0 8px 20px rgba(149,102,100,.2);
}

.auth-switch {
    margin: 27px 0 0;
    color: var(--auth-muted);
    text-align: center;
    font-size: 13px;
}

.auth-switch a {
    color: var(--auth-rose);
    font-weight: 700;
    text-decoration: none;
}

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

.auth-back-home {
    display: inline-block;
    margin-top: 24px;
    color: #8d817c;
    font-size: 12px;
    text-decoration: none;
}

.auth-back-home:hover {
    color: var(--auth-rose);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: 270px;
        padding: 26px 30px;
    }

    .auth-editorial {
        padding: 42px 0 25px;
    }

    .auth-editorial h1 {
        max-width: 560px;
        font-size: clamp(38px, 8vw, 55px);
    }

    .auth-editorial p {
        font-size: 13px;
    }

    .auth-showcase-footer {
        display: none;
    }

    .auth-panel {
        padding: 45px 24px 55px;
    }
}

@media (max-width: 480px) {
    .auth-showcase {
        min-height: 230px;
        padding: 22px 22px;
    }

    .auth-brand-name {
        font-size: 18px;
    }

    .auth-editorial {
        padding: 32px 0 10px;
    }

    .auth-editorial h1 {
        font-size: 38px;
    }

    .auth-editorial p {
        font-size: 12px;
    }

    .auth-panel {
        padding: 36px 22px 45px;
    }

    .auth-heading {
        margin-bottom: 26px;
    }

    .auth-input,
    .auth-submit {
        min-height: 52px;
        height: 52px;
    }
}
