/* ===== AUTH PAGES STYLING ===== */

/* Simple Auth Header */
.auth-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.auth-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.auth-logo:hover {
    transform: translateY(-2px);
}

.auth-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.auth-logo .logo-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.auth-logo .logo-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.auth-nav {
    display: flex;
    gap: 1rem;
}

.auth-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-nav .nav-link:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

/* Auth Main Content */
.auth-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--bg-color);
}

.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.auth-card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.auth-card-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: var(--bg-hover);
}

/* Form Options */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--input-bg);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
}

.checkbox-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    align-self: flex-end;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-social {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-light);
    margin-bottom: 0.5rem;
}

.btn-social:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.auth-divider span {
    padding: 0 1rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    color: var(--text-muted);
    margin: 0;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-header-container {
        padding: 0 1rem;
    }
    
    .auth-logo .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .auth-nav {
        gap: 0.5rem;
    }
    
    .auth-nav .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .auth-container {
        padding: 0 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-card-header h2 {
        font-size: 1.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-group input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
}

@media (max-width: 480px) {
    .auth-logo .logo-text {
        display: none;
    }
    
    .auth-nav .nav-link span {
        display: none;
    }
    
    .auth-card {
        margin: 1rem 0;
        padding: 1.5rem 1rem;
    }
    
    .auth-card-header h2 {
        font-size: 1.5rem;
    }
}

/* Theme Support */
[data-theme="dark"] {
    --bg-color: #0f0f23;
    --card-bg: #1a1a35;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --border-light: #2d3748;
    --input-bg: #2d3748;
    --bg-hover: #374151;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #1a202c;
    --text-muted: #718096;
    --border-light: #e2e8f0;
    --input-bg: #ffffff;
    --bg-hover: #f7fafc;
}