:root {
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #dbe5df;
    --auth-panel: rgba(255, 255, 255, 0.92);
    --auth-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.auth-page-shell {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    padding: 150px 0 96px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 25%, rgba(0, 255, 133, 0.14), transparent 32%),
        radial-gradient(circle at 12% 80%, rgba(193, 39, 45, 0.08), transparent 30%),
        linear-gradient(135deg, #fbfaf7 0%, #f6fbf8 52%, #effaf4 100%);
}

.auth-page-shell::before,
.auth-page-shell::after {
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    content: '';
    filter: blur(8px);
    opacity: 0.6;
}

.auth-page-shell::before {
    top: 110px;
    right: -150px;
    background: rgba(0, 125, 65, 0.11);
}

.auth-page-shell::after {
    bottom: -190px;
    left: -120px;
    background: rgba(193, 39, 45, 0.08);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: clamp(48px, 7vw, 104px);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 0px;
}

.auth-hero {
    max-width: 590px;
}

.auth-badge {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 9px 16px;
    margin-bottom: 28px;
    color: var(--gmp-primary);
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(0, 125, 65, 0.08);
    border: 1px solid rgba(0, 125, 65, 0.18);
    border-radius: 999px;
}

.auth-hero h1 {
    margin: 0 0 20px;
    color: var(--auth-ink);
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.auth-hero h1 span {
    color: var(--gmp-primary);
}

.auth-hero > p {
    max-width: 560px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 1.05rem;
    line-height: 1.95;
}

.auth-trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.auth-trust-item {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 14px 16px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.auth-trust-item i {
    width: 20px;
    color: var(--gmp-primary);
    text-align: center;
}

.auth-card {
    padding: clamp(30px, 4vw, 46px);
    background: var(--auth-panel);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(22px);
}

.auth-card-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-card-logo {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.auth-card-kicker {
    margin-bottom: 7px;
    color: var(--gmp-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.auth-card-header p {
    margin: 12px 0 0;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.auth-card-header p a {
    color: var(--gmp-primary);
    font-weight: 800;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #334155;
    font-size: 0.88rem;
    font-weight: 800;
}

.auth-form input[type='text'],
.auth-form input[type='password'],
.auth-form input[type='email'] {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    color: var(--auth-ink);
    font-size: 1rem;
    background: #f8fafc;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form input[type='text']:focus,
.auth-form input[type='password']:focus,
.auth-form input[type='email']:focus {
    background: #fff;
    border-color: var(--gmp-primary);
    box-shadow: 0 0 0 4px rgba(0, 125, 65, 0.12);
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 52px !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #64748b;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
    place-items: center;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--gmp-primary);
    background: rgba(0, 125, 65, 0.08);
}

.auth-submit,
.auth-form input[type='submit'] {
    width: 100%;
    min-height: 54px;
    padding: 13px 24px;
    margin-top: 4px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    background: var(--gmp-primary);
    border: 1px solid var(--gmp-primary);
    border-radius: 13px;
    box-shadow: 0 12px 26px rgba(0, 125, 65, 0.22);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-form input[type='submit']:hover {
    background: var(--gmp-primary-hover);
    box-shadow: 0 15px 30px rgba(0, 90, 48, 0.26);
    transform: translateY(-1px);
}

.auth-submit:disabled,
.auth-form input[type='submit']:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    padding-top: 22px;
    margin-top: 24px;
    border-top: 1px solid #e8eeea;
}

.auth-links a {
    color: var(--gmp-primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--gmp-primary-hover);
    text-decoration: underline;
}

.auth-role-switch {
    display: flex;
    justify-content: center;
    padding: 5px;
    margin: 0 0 18px;
    background: #eef4f0;
    border-radius: 13px;
}

.auth-role-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-role-switch label {
    min-width: 112px;
    padding: 9px 18px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
}

.auth-role-switch input:checked + label {
    color: var(--gmp-primary);
    background: #fff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.08);
}

.auth-role-switch input:focus-visible + label {
    outline: 3px solid rgba(0, 125, 65, 0.3);
    outline-offset: 2px;
}

.auth-recovery-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 15px;
    margin-bottom: 18px;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.6;
    background: rgba(0, 125, 65, 0.06);
    border: 1px solid rgba(0, 125, 65, 0.12);
    border-radius: 13px;
}

.auth-recovery-note i {
    margin-top: 3px;
    color: var(--gmp-primary);
}

@media (max-width: 991px) {
    .auth-page-shell {
        padding-top: 126px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 42px;
        max-width: 680px;
    }

    .auth-card {
        order: -1;
    }

    .auth-hero {
        max-width: none;
        text-align: center;
    }

    .auth-hero h1 {
        font-size: clamp(2.8rem, 8vw, 4.2rem);
    }

    .auth-hero > p {
        margin: 0 auto;
    }

    .auth-trust-list {
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }
}

@media (max-width: 575px) {
    .auth-page-shell {
        min-height: auto;
        padding: 112px 0 64px;
    }

    .auth-layout {
        gap: 30px;
        padding: 0 16px;
    }

    .auth-badge {
        margin-bottom: 20px;
        font-size: 0.76rem;
    }

    .auth-hero h1 {
        margin-bottom: 16px;
        font-size: 2.55rem;
    }

    .auth-hero > p {
        font-size: 0.94rem;
        line-height: 1.8;
    }

    .auth-trust-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 26px;
    }

    .auth-trust-item {
        min-height: 52px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .auth-role-switch label {
        min-width: 0;
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page-shell *,
    .auth-page-shell *::before,
    .auth-page-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
