/**
 * Diyarbakir Menu - Auth Pages CSS
 * Modern authentication pages with main theme
 * Version: 1.0.0
 */

/* ===========================
   IMPORTS & VARIABLES
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Colors - From Main Theme */
    --white: #ffffff;
    --black: #000000;
    
    /* Amber Scale */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ===========================
   AUTH CONTAINER
   =========================== */
.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-10);
    border: 1px solid var(--gray-200);
}

/* ===========================
   AUTH HEADER
   =========================== */
.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.auth-header p {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
}

/* ===========================
   ALERTS
   =========================== */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    font-size: 14px;
    line-height: 1.6;
}

.alert ul {
    list-style: none;
    margin: 0;
}

.alert li {
    margin-bottom: var(--space-2);
}

.alert li:last-child {
    margin-bottom: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

/* ===========================
   FORM
   =========================== */
.auth-form {
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus {
    outline: none;
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group small {
    display: block;
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--gray-500);
}

/* Checkbox Style */
.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox label {
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
    line-height: 1.5;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: var(--space-2);
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--amber-600);
    flex-shrink: 0;
}

.form-group.checkbox a {
    color: var(--amber-600);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.form-group.checkbox a:hover {
    color: var(--amber-700);
    text-decoration: underline;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    gap: var(--space-2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===========================
   AUTH LINKS
   =========================== */
.auth-links {
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-links a {
    color: var(--amber-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.auth-links a:hover {
    color: var(--amber-700);
    text-decoration: underline;
}

/* ===========================
   AUTH FOOTER
   =========================== */
.auth-footer {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--amber-600);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--amber-700);
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 640px) {
    .auth-box {
        padding: var(--space-6);
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .auth-header p {
        font-size: 15px;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box {
    animation: fadeIn var(--transition-slow) ease-out;
}

/* ===========================
   LOADING STATE
   =========================== */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ===========================
   PASSWORD STRENGTH INDICATOR
   =========================== */
.password-strength {
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin-top: var(--space-2);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.password-strength-weak {
    width: 33%;
    background: var(--error);
}

.password-strength-medium {
    width: 66%;
    background: var(--warning);
}

.password-strength-strong {
    width: 100%;
    background: var(--success);
}