body {
    margin: 0;
    min-height: 100vh;
    color: #102038;
    background:
        radial-gradient(760px 360px at -8% -18%, rgba(37, 99, 235, 0.2), transparent 58%),
        radial-gradient(760px 340px at 110% -6%, rgba(20, 139, 96, 0.16), transparent 56%),
        linear-gradient(180deg, #f2f6fc 0%, #e9eef6 100%);
}

.auth-main {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: clamp(20px, 4vw, 44px);
}

.login-page.auth-layout {
    width: min(1060px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(360px, 450px);
    gap: 22px;
    align-items: stretch;
}

.auth-brand {
    border-radius: 20px;
    border: 1px solid rgba(16, 32, 56, 0.12);
    background:
        radial-gradient(500px 220px at 8% -8%, rgba(20, 121, 228, 0.14), transparent 60%),
        radial-gradient(420px 200px at 96% 14%, rgba(20, 139, 96, 0.11), transparent 62%),
        rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(16, 32, 56, 0.12);
    padding: clamp(22px, 3.5vw, 34px);
    display: grid;
    gap: 14px;
}

.auth-back-link {
    width: fit-content;
    color: #365b85;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.auth-back-link:hover {
    color: #1f4570;
    text-decoration: underline;
}

.auth-badge {
    margin: 0;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: #1f4f86;
    border: 1px solid rgba(17, 95, 187, 0.24);
    background: rgba(12, 121, 226, 0.1);
}

.auth-brand h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #0f2946;
}

.auth-copy {
    margin: 0;
    color: #3c5979;
    line-height: 1.65;
    font-size: 16px;
}

.auth-points {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.auth-points li {
    margin: 0;
    border: 1px solid rgba(16, 32, 56, 0.12);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    padding: 10px 12px;
    color: #1f3a59;
    font-size: 14px;
    line-height: 1.45;
}

.auth-points li::before {
    content: "✓";
    color: #0b7a54;
    font-weight: 700;
    margin-right: 8px;
}

.login-card.auth-card-wrap {
    border-radius: 20px;
    border: 1px solid rgba(16, 32, 56, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 38px rgba(16, 32, 56, 0.14);
    padding: clamp(22px, 3.5vw, 34px);
    display: grid;
    align-content: center;
}

.login-header h1 {
    margin: 0;
    font-size: clamp(30px, 3.1vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0f2946;
}

.login-header p {
    margin: 10px 0 0;
    color: #4a6180;
    font-size: 15px;
    line-height: 1.5;
}

.login-error {
    display: block;
    margin-top: 14px;
    border-radius: 12px;
    border: 1px solid rgba(191, 38, 57, 0.28);
    background: rgba(191, 38, 57, 0.1);
    color: #8f1d2c;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.login-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    color: #294766;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    border: 1px solid rgba(16, 32, 56, 0.16);
    border-radius: 12px;
    background: #fff;
    height: 46px;
    padding: 0 14px;
    color: #132b47;
    font-size: 15px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-group input::placeholder {
    color: #8ba0ba;
}

.form-group input:focus {
    border-color: #2a67c6;
    box-shadow: 0 0 0 3px rgba(42, 103, 198, 0.16);
}

.btn-primary {
    margin-top: 4px;
    border: 1px solid rgba(19, 81, 175, 0.42);
    border-radius: 12px;
    height: 46px;
    background: linear-gradient(135deg, #2d63c4, #244ba5);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(36, 75, 165, 0.28);
}

.divider {
    margin: 18px 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5f7694;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(16, 32, 56, 0.16);
}

.social-login {
    display: grid;
    gap: 10px;
}

.btn-social {
    border: 1px solid rgba(16, 32, 56, 0.16);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    height: 44px;
    color: #1d3a5a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.btn-social:hover {
    border-color: rgba(42, 103, 198, 0.38);
    background: #f5f8ff;
}

.login-footer {
    margin-top: 16px;
    text-align: center;
    color: #5d7392;
    font-size: 14px;
}

.login-footer a {
    color: #2453a7;
    font-weight: 700;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

@media (max-width: 920px) {
    .login-page.auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        order: 2;
    }

    .login-card.auth-card-wrap {
        order: 1;
    }
}

@media (max-width: 560px) {
    .auth-main {
        padding: 14px;
    }

    .login-card.auth-card-wrap,
    .auth-brand {
        border-radius: 16px;
        padding: 18px 16px;
    }

    .auth-brand h2 {
        font-size: 28px;
    }

    .login-header h1 {
        font-size: 32px;
    }
}
