/* ========================================
   Auth Pages - Login/Register Styles
   ======================================== */

:root {
    --bg-primary: #212121;
    --bg-secondary: #171717;
    --bg-tertiary: #2f2f2f;
    --bg-hover: #3a3a3a;
    --bg-active: #424242;
    
    --text-primary: #ececec;
    --text-secondary: #b4b4b4;
    --text-muted: #8e8e8e;
    
    --accent-primary: #10a37f;
    --accent-secondary: #1a7f64;
    --accent-hover: #0d8c6d;
    
    --border-color: #424242;
    --border-light: #2f2f2f;
    
    --success: #10a37f;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input {
    font-family: inherit;
    outline: none;
}

/* ========================================
   Auth Container
   ======================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* ========================================
   Auth Card
   ======================================== */
.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Auth Header
   ======================================== */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.logo img,
.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.admin-logo {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Security Notice (Admin)
   ======================================== */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.8rem;
    color: #818cf8;
}

/* ========================================
   Auth Form
   ======================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.input-wrapper i:first-child {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

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

.input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
}

.input-wrapper input:focus + i:last-child,
.input-wrapper input:focus ~ i:last-child {
    color: var(--accent-primary);
}

.input-wrapper:focus-within i:first-child {
    color: var(--accent-primary);
}

.toggle-password {
    position: absolute;
    right: 12px;
    padding: 4px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

/* ========================================
   Password Strength Indicator
   ======================================== */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background-color: var(--bg-hover);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.password-strength.weak .strength-bar::after {
    width: 33%;
    background-color: var(--danger);
}

.password-strength.medium .strength-bar::after {
    width: 66%;
    background-color: var(--warning);
}

.password-strength.strong .strength-bar::after {
    width: 100%;
    background-color: var(--success);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 60px;
}

/* ========================================
   Form Options
   ======================================== */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-wrapper input:checked + .checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
}

.forgot-password {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.forgot-password:hover {
    color: var(--accent-primary);
}

/* ========================================
   Auth Buttons
   ======================================== */
.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.auth-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.4);
}

.auth-btn.admin-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.auth-btn.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ========================================
   Divider
   ======================================== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

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

.divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ========================================
   Google Button
   ======================================== */
.google-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.google-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-muted);
}

/* ========================================
   Guest Button
   ======================================== */
.guest-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.guest-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.auth-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    font-weight: 500;
}

/* ========================================
   Admin Login Link
   ======================================== */
.admin-login-link {
    text-align: center;
    margin-top: 16px;
}

.admin-login-link a {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-login-link a:hover {
    color: #6366f1;
}

/* ========================================
   Admin Info Box
   ======================================== */
.admin-info {
    margin-top: 16px;
    padding: 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-info p {
    margin: 4px 0;
}

.admin-info code {
    font-family: 'Consolas', monospace;
    background-color: var(--bg-hover);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

/* ========================================
   Footer Credit
   ======================================== */
.footer-credit {
    margin-top: 24px;
    text-align: center;
}

.footer-credit p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Admin Theme Variant
   ======================================== */
.admin-theme .auth-card {
    border-color: rgba(99, 102, 241, 0.3);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

    .auth-header h1 {
        font-size: 1.25rem;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
