/**
 * Auth Pages Styles - Matching Main Site Theme
 */

/* Dark Theme (Default) */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #222;
    --bg-tertiary: #2a2a2a;
    --bg-card: #252525;
    --bg-card-hover: #2d2d2d;
    --accent-primary: #4a9eff;
    --accent-secondary: #6366f1;
    --text-primary: #e8e8e8;
    --text-secondary: #999;
    --text-muted: #666;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --border-color: #333;
    --scrollbar-thumb: #444;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

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

.logo span {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--accent-primary);
    font-size: 12px;
}

.form-group input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.15s ease;
    font-family: inherit;
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
}

.forgot-password a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

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

.btn-primary {
    background: var(--accent-primary);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #3d8ce8;
}

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

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
}

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

/* Subtle background decoration */
.auth-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    top: 50%;
    left: 20%;
}

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

    .auth-header h1 {
        font-size: 20px;
    }

    .logo i {
        font-size: 24px;
    }

    .logo span {
        font-size: 18px;
    }
}
