:root {
    --navy-950: #081a2e;
    --navy-900: #0b2440;
    --navy-800: #10385f;
    --blue-600: #087bdc;
    --blue-500: #1594f6;
    --blue-100: #eaf5ff;
    --green-600: #1c9b62;
    --green-500: #25b975;
    --text: #172536;
    --muted: #607084;
    --border: #d9e2ec;
    --surface: #ffffff;
    --page: #eef3f8;
    --error-bg: #fff0f1;
    --error-text: #9f2631;
    --success-bg: #eaf8ef;
    --success-text: #176b3a;
    --shadow: 0 24px 70px rgba(8, 26, 46, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.auth-page {
    min-height: 100vh;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 15%, rgba(21, 148, 246, 0.16), transparent 30%),
        radial-gradient(circle at 90% 85%, rgba(37, 185, 117, 0.12), transparent 28%),
        var(--page);
}

.auth-shell {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(430px, 0.9fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 68px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-800) 58%, #075d96 100%);
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-hero::before {
    width: 360px;
    height: 360px;
    top: -180px;
    right: -100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.035), 0 0 0 96px rgba(255, 255, 255, 0.025);
}

.auth-hero::after {
    width: 280px;
    height: 280px;
    bottom: -170px;
    left: -110px;
    background: rgba(21, 148, 246, 0.18);
}

.brand-mark,
.mobile-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-500), #34b4ff);
    box-shadow: 0 10px 28px rgba(0, 120, 212, 0.32);
}

.brand-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 38px;
    border-radius: 17px;
    font-size: 19px;
}

.eyebrow,
.form-kicker {
    margin: 0 0 13px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.eyebrow {
    color: #8fd2ff;
}

.auth-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0;
    font-size: clamp(38px, 4.3vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 590px;
    margin: 22px 0 36px;
    color: rgba(255, 255, 255, 0.77);
    font-size: 17px;
    line-height: 1.65;
}

.feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.feature-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 15px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #bfe7ff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(21, 148, 246, 0.2);
}

.feature-item h2,
.trial-card h2 {
    margin: 0 0 4px;
    font-size: 16px;
}

.feature-item p,
.trial-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.45;
}

.hero-note {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.hero-note strong {
    color: #ffffff;
    font-size: 14px;
}

.auth-panel {
    padding: 60px 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.form-wrap {
    width: 100%;
    max-width: 440px;
}

.form-kicker {
    color: var(--blue-600);
}

.form-wrap h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.form-intro {
    margin: 12px 0 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

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

.field-group {
    min-width: 0;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #2b3d50;
    font-size: 13px;
    font-weight: 750;
}

.field-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: #fbfcfe;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field-group input::placeholder {
    color: #98a6b5;
}

.field-group input:hover {
    border-color: #b8c7d6;
}

.field-group input:focus {
    outline: none;
    border-color: var(--blue-500);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(21, 148, 246, 0.13);
}

.password-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 12px 18px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button.login {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    box-shadow: 0 12px 24px rgba(8, 123, 220, 0.23);
}

.auth-button.register {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    box-shadow: 0 12px 24px rgba(28, 155, 98, 0.22);
}

.auth-divider {
    margin: 26px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #98a6b5;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e4eaf0;
}

.auth-link {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth-link a {
    display: inline-block;
    margin-left: 4px;
    color: var(--blue-600);
    font-weight: 750;
    text-decoration: none;
}

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

.legal-note {
    margin: 26px auto 0;
    max-width: 390px;
    color: #98a6b5;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
}

.auth-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-message.error {
    color: var(--error-text);
    border: 1px solid #f2c7cb;
    background: var(--error-bg);
}

.auth-message.success {
    color: var(--success-text);
    border: 1px solid #bfe7cd;
    background: var(--success-bg);
}

.trial-card {
    position: relative;
    z-index: 1;
    margin: 4px 0 30px;
    padding: 20px;
    display: flex;
    gap: 17px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.08);
}

.trial-badge {
    min-width: 86px;
    padding: 10px 8px;
    border-radius: 11px;
    color: var(--navy-950);
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: #8fe6ba;
}

.benefit-list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 15px;
    list-style: none;
}

.benefit-list li {
    display: flex;
    gap: 11px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.benefit-list span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #9ef0c5;
    font-weight: 900;
    background: rgba(37, 185, 117, 0.18);
}

.mobile-brand {
    display: none;
}

@media (max-width: 980px) {
    body.auth-page {
        padding: 18px;
        align-items: flex-start;
    }

    .auth-shell {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .auth-hero {
        display: none;
    }

    .auth-panel {
        min-height: calc(100vh - 36px);
        padding: 48px 28px;
    }

    .mobile-brand {
        margin-bottom: 38px;
        display: flex;
        gap: 12px;
        align-items: center;
        color: var(--navy-900);
        font-size: 17px;
        font-weight: 800;
    }

    .mobile-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    body.auth-page {
        padding: 0;
        background: #ffffff;
    }

    .auth-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 34px 22px;
        align-items: flex-start;
    }

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

    .password-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .register-form-wrap .form-intro {
        margin-bottom: 24px;
    }
}
