.auth-page {
    min-height: 100vh;
    padding: 28px;
}

.auth-layout {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    margin: 0 auto;
    max-width: 1080px;
    min-height: min(760px, calc(100vh - 56px));
    overflow: hidden;
}

.auth-story {
    background: linear-gradient(145deg, rgba(41, 59, 56, 0.97), rgba(45, 80, 69, 0.96));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: clamp(32px, 5vw, 64px);
    position: relative;
}

.auth-story::after {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    height: 440px;
    position: absolute;
    right: -180px;
    top: 22%;
    width: 440px;
}

.auth-logo,
.mobile-logo {
    align-items: center;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 800;
    gap: 11px;
    letter-spacing: 0.02em;
    width: fit-content;
}

.auth-logo i,
.mobile-logo i {
    color: #e7ad76;
    font-size: 1.55rem;
}

.story-copy {
    margin: 70px 0;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #b7cbb7;
    display: block;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.story-copy h1 {
    font-size: clamp(2.3rem, 4.2vw, 3.7rem);
    letter-spacing: -0.045em;
    line-height: 1.06;
    margin-bottom: 20px;
}

.story-copy p {
    color: #d1ddd2;
    font-size: 1.02rem;
    max-width: 370px;
}

.story-footnote {
    color: #d1ddd2;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.story-footnote i {
    color: #e7ad76;
    margin-right: 7px;
}

.auth-panel {
    align-self: center;
    margin: 0 auto;
    max-width: 430px;
    padding: 56px 40px;
    width: 100%;
}

.mobile-logo {
    color: var(--navy);
    display: none;
    margin-bottom: 42px;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading .eyebrow {
    color: var(--blue);
    margin-bottom: 9px;
}

.auth-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
    margin-bottom: 9px;
}

.auth-heading p,
.field-hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form label {
    font-size: 0.84rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.input-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    margin-bottom: 20px;
    min-height: 50px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(57, 117, 110, 0.13);
}

.input-wrap > i {
    color: #92958a;
    font-size: 0.9rem;
    margin-left: 15px;
}

.input-wrap input {
    background: transparent;
    border: 0;
    color: var(--ink);
    min-width: 0;
    outline: 0;
    padding: 13px;
    width: 100%;
}

.input-wrap input::placeholder {
    color: #a2a399;
}

.field-hint {
    font-size: 0.76rem;
    margin: -13px 0 19px;
}

.form-status {
    color: #a94f3f;
    font-size: 0.84rem;
    min-height: 1.3em;
    margin: -2px 0 12px;
}

.form-status:empty {
    min-height: 0;
    margin: 0;
}

.form-status.success {
    color: var(--success);
}

.auth-submit {
    align-items: center;
    background: var(--blue);
    border: 0;
    border-radius: 6px;
    color: #fff;
    display: flex;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    position: relative;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-submit i {
    position: absolute;
    right: 18px;
}

.auth-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.auth-switch {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 25px;
    text-align: center;
}

.auth-switch a {
    color: var(--blue-dark);
    font-weight: 800;
}

.auth-switch a:hover,
.back-link:hover {
    text-decoration: underline;
}

.back-link {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    margin-top: 30px;
    text-align: center;
}

.back-link i {
    margin-right: 6px;
}

@media (max-width: 760px) {
    .auth-page {
        align-items: center;
        display: flex;
        justify-content: center;
        padding: 18px;
    }

    .auth-layout {
        display: block;
        max-width: 520px;
        min-height: 0;
        width: 100%;
    }

    .auth-story {
        display: none;
    }

    .auth-panel {
        padding: 36px clamp(24px, 7vw, 48px);
    }

    .mobile-logo {
        display: inline-flex;
        margin-bottom: 38px;
    }
}

@media (max-width: 420px) {
    .auth-page {
        padding: 10px;
    }

    .auth-layout {
        border-radius: 10px;
    }

    .auth-panel {
        padding: 28px 22px;
    }

    .mobile-logo {
        margin-bottom: 32px;
    }
}
