* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 40%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: 0.02em;
}

.logo h1 span {
    color: #2b6cb0;
}

.tagline {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.25rem;
}

.error-msg {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.12);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #2b6cb0;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #2c5282;
}

.btn-google {
    width: 100%;
    background: #fff;
    color: #374151;
    border: 1.5px solid #e2e8f0;
}

.btn-google:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #a0aec0;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.toggle-auth {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #718096;
}

.toggle-auth a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

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

.footer-links {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
}

.footer-links a {
    color: #718096;
    text-decoration: none;
}

.footer-links a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.footer-links .dot {
    color: #cbd5e0;
    margin: 0 0.4rem;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    .logo h1 {
        font-size: 2rem;
    }
}
