:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-bg: #0b1220;
    --light-bg: #f7f8fb;
    --card-bg: #ffffff;
    --text-dark: #0b1220;
    --text-muted: #666;
    --accent: #667eea;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-gradient {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.by-line {
    font-size: 13px;
    color: var(--text-muted);
}

h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 28px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

small {
    display: block;
    margin-top: 0.375rem;
    color: var(--text-muted);
    font-size: 13px;
}

.form-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.link-secondary {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.link-secondary:hover {
    color: #764ba2;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.message {
    margin-top: 1rem;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.message:not(:empty) {
    display: block;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success);
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--error);
}

.message.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid var(--warning);
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #764ba2;
}

.small-text {
    font-size: 13px !important;
    margin-top: 1rem !important;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-card {
        padding: 2rem;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .logo-gradient {
        font-size: 24px;
    }
}
