/* ============================================================
   ZEEROHASSLE AUTH - UNIFIED THEME (LIGHT PRIMARY)
   ============================================================ */

:root,
[data-theme='light'] {
    /* LIGHT MODE (Default) */
    --auth-bg: #f8fafc;
    --auth-card-bg: rgba(255, 255, 255, 0.8);
    --primary-blue: #3b82f6;
    --primary-blue-glow: rgba(59, 130, 246, 0.2);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --error-red: #ef4444;
    --auth-bg-image: url('/images/auth-bg-light.png');
    --overlay-color: radial-gradient(circle at center, transparent, rgba(248, 250, 252, 0.8));
    --border-alpha: rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
    --auth-bg: #161922;
    --auth-card-bg: rgba(22, 25, 34, 0.8);
    --primary-blue-glow: rgba(59, 130, 246, 0.5);
    --input-bg: #242936;
    --input-border: #333a4a;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --auth-bg-image: url('/images/auth-bg.png');
    --overlay-color: radial-gradient(circle at center, transparent, #161922);
    --border-alpha: rgba(255, 255, 255, 0.1);
}

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

body.auth-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--auth-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* RemixIcon Fixes */
[class^="ri-"],
[class*=" ri-"] {
    font-weight: normal !important;
}

/* AUTH LAYOUT WITH BACKGROUND */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    background: var(--auth-bg-image) no-repeat center center;
    background-size: cover;
    transition: background 0.5s ease;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
    z-index: 0;
    transition: background 0.5s ease;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-alpha);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, border 0.3s ease;
}

.auth-card.wide-card {
    max-width: 800px;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

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

/* FORM STYLES */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.input-wrapper i {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--primary-blue-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* BUTTONS */
.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

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

/* VALIDATION */
.text-danger {
    color: var(--error-red);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* SITE FOOTER */
.site-footer {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--auth-bg);
}

/* LOGO & ACTIONS */
.auth-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-actions {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-card-bg);
    border: 1px solid var(--border-alpha);
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary-blue);
}

.logo-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-blue);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}