:root {
    --primary: #1f6bf2;
    --primary-dark: #1957c2;
    --primary-rgb: 31, 107, 242;
    --surface: #ffffff;
    --muted: #6b7280;
    --accent: linear-gradient(135deg, #e3edff 0%, #d6e7ff 100%);
    --card-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(100% 100% at 50% 0%, rgba(31, 107, 242, 0.16) 0%, rgba(31, 107, 242, 0) 60%), #f6f7fb;
    color: #0f172a;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: 32px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(31, 107, 242, 0.14) 0%, rgba(25, 87, 194, 0.14) 100%);
    opacity: 0.6;
    pointer-events: none;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(31, 107, 242, 0.28) 0%, rgba(31, 107, 242, 0) 70%);
    pointer-events: none;
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-header {
    padding: 36px 40px 20px;
    text-align: center;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 24px rgba(31, 107, 242, 0.14);
    margin-bottom: 20px;
}

.brand-badge span {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.auth-header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.auth-body {
    padding: 0 40px 28px;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-btn:hover {
    border-color: rgba(31, 107, 242, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.social-btn-label {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: rgba(148, 163, 184, 0.4);
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
}

.form-control {
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 15px;
}

.form-control:focus {
    border-color: rgba(31, 107, 242, 0.65);
    box-shadow: 0 0 0 4px rgba(31, 107, 242, 0.18);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-check-label {
    font-size: 14px;
    color: var(--muted);
}

.auth-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 16px 32px rgba(var(--primary-rgb), 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(var(--primary-rgb), 0.3);
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.auth-footer a {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .auth-card {
        border-radius: 24px;
    }

    .auth-header,
    .auth-body {
        padding: 24px 20px;
    }

    .social-login {
        gap: 12px;
    }
}
