/* ============================================================
   CodeZoic Auth Pages — Stylesheet
   ============================================================ */

:root {
    --primary: #82b440;
    --primary-dark: #6a9a30;
    --primary-light: #a3d65c;
    --primary-rgb: 130, 180, 64;
    --accent: #4eb5e5;
    --accent-rgb: 78, 181, 229;
    --bg-dark: #1e1f26;
    --bg-card: #2a2b33;
    --gradient-primary: linear-gradient(135deg, #82b440 0%, #4eb5e5 100%);
    --gradient-dark: linear-gradient(135deg, #1e1f26 0%, #2a2b33 100%);
    --gradient-auth: linear-gradient(135deg, #1e1f26 0%, #2d3a4a 25%, #1e1f26 50%, #2a2b33 100%);
    --text-primary: #333333;
    --text-secondary: #777777;
    --text-light: #ffffff;
    --text-muted: #999999;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-auth);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -25%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -25%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand-logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.auth-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
}

.auth-brand-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Auth Card */
.auth-card {
    background: rgba(42, 43, 51, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.auth-card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
}

/* Auth Form */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.auth-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    outline: none;
    transition: all var(--transition-fast);
}

.auth-form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.auth-form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-form-control.is-invalid {
    border-color: #dc3545;
}

.auth-form-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

.auth-input-group {
    position: relative;
}

.auth-input-group .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.auth-input-group .toggle-password:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Auth Form Options */
.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-form-options label {
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-form-options a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-form-options a:hover {
    color: var(--primary-light);
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

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

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

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

.auth-footer a:hover {
    color: var(--primary-light);
}

/* Alert */
.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}

.auth-alert.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #a3d9a5;
}

.auth-alert.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f5a0a8;
}

/* Responsive */
@media (max-width: 575px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-brand-name {
        font-size: 24px;
    }

    .auth-card-title {
        font-size: 20px;
    }
}
