/* 
 * Quick Results - Authentication Styles (Vanilla CSS)
 * Inspired by ControlNa Design
 */

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #2563eb;
    --primary-lighter: #3b82f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-100);
}

.auth-card {
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    margin: 1rem;
    color: var(--slate-800);
    border-top: 5px solid var(--primary-color);
}

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

.auth-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--slate-600);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--slate-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.25s ease;
    font-family: 'Cairo', sans-serif;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--slate-400);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    font-family: 'Cairo', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--slate-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--slate-100);
    padding-top: 1.5rem;
}

.footer-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-box {
    background-color: #fee2e2;
    border: 1px solid var(--error-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #991b1b;
}

.error-list {
    list-style: none;
    font-size: 0.9rem;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* RTL Specifics */
[dir="rtl"] .form-input {
    text-align: right;
}

[dir="rtl"] .footer-link {
    margin-right: 0.5rem;
}