:root {
    --auth-ink: #1a1a2e;
    --auth-muted: #6d7180;
    --auth-soft: #f7f7f8;
    --auth-line: rgba(26, 26, 46, 0.12);
    --auth-accent: #e11d48;
    --auth-button-gradient: linear-gradient(95deg, #e11d48 0%, #e11d53 48%, #bd1747 100%);
}

.auth-page {
    min-height: 100vh;
    background: #fafafa;
    color: var(--auth-ink);
    font-family: "Geist", sans-serif;
}

.auth-nav {
    min-height: 88px;
    border-bottom: 1px solid var(--auth-line);
    background: rgba(250, 250, 250, 0.94);
}

.auth-nav-inner {
    width: min(100% - 64px, 1180px);
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-brand {
    display: inline-flex;
}

.auth-brand img {
    display: block;
    width: auto;
    height: 27px;
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--auth-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.auth-home-link:hover {
    color: var(--auth-accent);
    transform: translateX(-2px);
}

.auth-shell {
    min-height: calc(100svh - 89px);
    display: grid;
    align-items: center;
    padding: clamp(64px, 9vh, 112px) 32px;
}

.auth-composition {
    width: min(100%, 1080px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(72px, 9vw, 136px);
    align-items: center;
}

.auth-login {
    width: min(100%, 480px);
    margin: 0 auto;
}

.auth-login-inner {
    animation: authEnter 420ms ease-out both;
}

.auth-login h1 {
    margin: 0;
    font-size: clamp(48px, 4.5vw, 58px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

.auth-login .auth-intro {
    margin-bottom: 32px;
}

.auth-copy,
.auth-action {
    animation: authEnter 420ms ease-out both;
}

.auth-action {
    padding: 12px 0 12px clamp(52px, 6vw, 84px);
    border-left: 1px solid var(--auth-line);
    animation-delay: 70ms;
}

.auth-eyebrow,
.auth-action-label {
    display: block;
    color: var(--auth-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-eyebrow {
    margin-bottom: 22px;
}

.auth-copy h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(54px, 6vw, 78px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.auth-intro {
    max-width: 44ch;
    margin: 24px 0 0;
    color: rgba(45, 45, 68, 0.68);
    font-size: 16px;
    line-height: 1.6;
}

.auth-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 42px;
    color: #4d5160;
    font-size: 14px;
    font-weight: 600;
}

.auth-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.auth-assurance i {
    color: var(--auth-accent);
    font-size: 19px;
}

.auth-action-label {
    margin-bottom: 16px;
}

.auth-action h2 {
    margin: 0;
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.auth-action > p {
    margin: 16px 0 30px;
    color: var(--auth-muted);
    font-size: 16px;
    line-height: 1.55;
}

.auth-action > p strong {
    color: var(--auth-ink);
    font-weight: 600;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(45, 45, 68, 0.9);
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 54px;
    padding: 16px 20px;
    border: 1px solid rgba(26, 26, 46, 0.16);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-ink);
    font-family: "Geist", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder {
    color: rgba(26, 26, 46, 0.42);
    font-weight: 500;
}

.auth-form input[type="email"]:hover,
.auth-form input[type="password"]:hover {
    border-color: rgba(26, 26, 46, 0.24);
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.auth-form button,
.auth-secondary-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 54px;
    margin-top: 2px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--auth-accent);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 320ms ease, color 320ms ease;
}

.auth-form button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--auth-accent);
    background-image: none;
}

.auth-form button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--auth-button-gradient);
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
}

.auth-form button:hover::before {
    opacity: 1;
}

.auth-secondary-button {
    min-width: 112px;
    background: var(--auth-ink);
}

.auth-secondary-button:hover {
    background: #2d2d44;
}

.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 24px;
    padding: 15px 0;
    border-top: 1px solid rgba(49, 85, 42, 0.18);
    border-bottom: 1px solid rgba(49, 85, 42, 0.18);
    color: #31552a;
    font-size: 14px;
    line-height: 1.5;
}

.auth-notice i {
    margin-top: 2px;
    font-size: 19px;
}

.auth-error {
    color: #c5163d;
    font-size: 14px;
    line-height: 1.5;
}

.auth-help,
.auth-text-link {
    margin-top: 22px;
    color: #858895;
    font-size: 13px;
    line-height: 1.5;
}

.auth-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.auth-help i {
    margin-top: 2px;
    color: var(--auth-accent);
    font-size: 17px;
}

.auth-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-ink);
    font-weight: 600;
    text-underline-offset: 4px;
}

.dashboard-summary {
    display: grid;
    gap: 7px;
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid var(--auth-line);
    border-bottom: 1px solid var(--auth-line);
}

.dashboard-summary span {
    color: #858895;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes authEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 820px) {
    .auth-nav,
    .auth-nav-inner {
        min-height: 72px;
    }

    .auth-nav-inner {
        width: min(100% - 40px, 680px);
    }

    .auth-home-link span {
        display: none;
    }

    .auth-home-link {
        width: 40px;
        height: 40px;
        justify-content: center;
        border: 1px solid var(--auth-line);
        border-radius: 50%;
    }

    .auth-shell {
        min-height: calc(100svh - 73px);
        display: block;
        padding: 56px 20px 72px;
    }

    .auth-composition {
        width: min(100%, 620px);
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .auth-login {
        width: min(100%, 480px);
    }

    .auth-copy h1 {
        font-size: clamp(46px, 12vw, 64px);
    }

    .auth-intro {
        margin-top: 20px;
        font-size: 16px;
    }

    .auth-assurance {
        margin-top: 28px;
    }

    .auth-action {
        padding: 44px 0 0;
        border-top: 1px solid var(--auth-line);
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .auth-nav-inner {
        width: calc(100% - 32px);
    }

    .auth-brand img {
        height: 25px;
    }

    .auth-shell {
        padding: 44px 18px 56px;
    }

    .auth-composition {
        gap: 42px;
    }

    .auth-login h1 {
        font-size: clamp(40px, 11vw, 48px);
    }

    .auth-login .auth-intro {
        margin-top: 20px;
        margin-bottom: 32px;
    }

    .auth-eyebrow {
        margin-bottom: 17px;
    }

    .auth-copy h1 {
        font-size: clamp(42px, 13vw, 56px);
    }

    .auth-action {
        padding-top: 36px;
    }

    .auth-action h2 {
        font-size: 32px;
    }

    .auth-action > p {
        margin-bottom: 26px;
    }

    .auth-form button {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-login-inner,
    .auth-copy,
    .auth-action {
        animation: none;
    }

    .auth-form button,
    .auth-secondary-button {
        transition: none;
    }

    .auth-form button::before {
        transition: none;
    }
}
