/* Auth Pages (Login/Signup) - Light Mode */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary-deep: #0F2847;
    --primary-mid: #1A4B7C;
    --primary-light: #3D7AB8;
    --accent: #00D4AA;
    --accent-hover: #00F5C4;
    --bg-primary: #FAFCFF;
    --bg-secondary: #F0F4FA;
    --bg-card: #FFFFFF;
    --text-primary: #0F2847;
    --text-secondary: #4A6282;
    --text-muted: #8B9DB8;
    --border: rgba(15, 40, 71, 0.08);
    --border-medium: rgba(15, 40, 71, 0.12);
    --shadow-sm: 0 2px 8px rgba(15, 40, 71, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 40, 71, 0.08);
    --shadow-lg: 0 16px 64px rgba(15, 40, 71, 0.12);
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Aurora background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(26, 75, 124, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(255, 107, 74, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

.login-box,
.signup-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.forgot-password {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 12px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.google-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.google-btn svg {
    width: 20px;
    height: 20px;
}

.error-message {
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.3);
    border-radius: 10px;
    padding: 12px;
    color: #DC2626;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.success-message {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 10px;
    padding: 12px;
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

/* Password requirements */
.password-requirements {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}

.password-requirements p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.password-requirements ul {
    list-style: none;
    font-size: 12px;
    color: var(--text-secondary);
}

.password-requirements li {
    margin-bottom: 4px;
    padding-left: 18px;
    position: relative;
}

.password-requirements li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.password-requirements li.valid::before {
    content: '✓';
    color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {

    .login-box,
    .signup-box {
        padding: 30px 24px;
    }
}