:root {
    --auth-bg: #ffffff;
    --auth-t-base: #0f172a;
    --auth-t-muted: #64748b;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
}

[data-theme="dark"] {
    --auth-bg: #0f172a;
    --auth-t-base: #f1f5f9;
    --auth-t-muted: #94a3b8;
    --input-bg: #1e293b;
    --input-border: #334155;
}

body {
    background: var(--auth-bg);
    color: var(--auth-t-base);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-aside {
    width: 38%;
    background: #4f46e5;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.auth-brand .logo {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand .logo svg { width: 24px; height: 24px; }
.auth-brand .name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

.auth-aside-body { z-index: 2; }
.auth-aside-body h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.02em; }
.auth-aside-body p { font-size: 16px; line-height: 1.6; opacity: 0.8; margin-bottom: 40px; max-width: 400px; }

.auth-quote {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    line-height: 1.6;
}

.auth-quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
}

.auth-quote-author .av {
    width: 28px;
    height: 28px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.auth-aside-footer { z-index: 2; font-size: 12px; font-weight: 500; opacity: 0.6; display: flex; gap: 20px; }

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.auth-main-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.auth-container {
    max-width: 380px;
    width: 100%;
    margin: auto;
}

.auth-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-card .sub { color: var(--auth-t-muted); font-size: 14px; margin-bottom: 32px; line-height: 1.5; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--auth-t-base); margin-bottom: 8px; }

.input-wrap { position: relative; }
.input-wrap .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--auth-t-muted); pointer-events: none; }

.form-control {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border-radius: 10px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    color: var(--auth-t-base);
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--auth-bg);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.btn--auth {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-main-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--auth-t-muted);
}

.auth-main-bottom a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-main-bottom a:hover { text-decoration: underline; }

.auth-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    background: var(--auth-bg);
    color: var(--auth-t-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.auth-theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(12deg);
}

.auth-theme-toggle svg { width: 18px; height: 18px; }

[data-theme="light"] .auth-theme-toggle .icon-moon,
[data-theme="dark"] .auth-theme-toggle .icon-sun { display: none; }

.invalid-feedback,
.text-danger {
    color: var(--danger, #ef4444);
}

@media (max-width: 1024px) {
    .auth-aside { display: none; }
    .auth-main { padding: 40px 20px; }
    .auth-mobile-logo { display: block; margin: 0 0 28px; }
}

/* Brand logo on the indigo aside (desktop) */
.auth-brand-logo { height: 30px; width: auto; display: block; }

/* Logo shown in the form column when the aside is hidden (mobile) */
.auth-mobile-logo { display: none; }
.auth-mobile-logo img { height: 30px; width: auto; display: block; }
.auth-mobile-logo--dark { display: none; }
[data-theme="dark"] .auth-mobile-logo > img:not(.auth-mobile-logo--dark) { display: none; }
[data-theme="dark"] .auth-mobile-logo--dark { display: block; }


/* ===== moved from resources/views/auth/register.blade.php ===== */
        .active-tab {
            background: var(--bg-surface) !important;
            color: var(--primary) !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
        }


/* ===== moved from resources/views/auth/onboarding-wizard.blade.php ===== */
        .d-none {
            display: none !important;
        }
        .step-indicator {
            transition: all 0.3s ease;
        }

/* Auth flash/status banner (e.g. "We have emailed your password reset link.") */
.auth-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.30);
    border-radius: 10px;
    color: #047857;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}
.auth-status svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}
[data-theme="dark"] .auth-status {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}
