html,
body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.bg-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-blobs .b1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    filter: blur(120px);
    top: -200px;
    right: -150px;
}
.bg-blobs .b2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.08);
    filter: blur(120px);
    bottom: -150px;
    left: -100px;
}
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}
.auth-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 28px;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
    pointer-events: none;
}
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}
.auth-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--clr-primary), #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.auth-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clr-text);
}
.auth-logo-text .brand-dot {
    color: var(--clr-primary);
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text);
    text-align: center;
    margin-bottom: 6px;
}
.auth-subtitle {
    font-size: 0.875rem;
    color: var(--clr-muted);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.form-label-dark {
    color: var(--clr-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.input-wrap {
    position: relative;
    margin-bottom: 16px;
}
.input-icon-r {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    color: var(--clr-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}
.input-icon-l {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    color: var(--clr-muted);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}
.input-icon-l:hover {
    color: var(--clr-text);
}
.fc-dark {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    color: var(--clr-text);
    font-family: "Cairo", sans-serif;
    font-size: 0.875rem;
    padding: 11px 42px 11px 14px;
    transition:
        border-color 0.2s,
        background 0.2s;
    width: 100%;
}
.fc-dark.has-li {
    padding-left: 42px;
}
.fc-dark::placeholder {
    color: var(--clr-muted);
}
.fc-dark:focus {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--clr-text);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}
.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--clr-muted);
    font-size: 0.78rem;
}
.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--clr-border);
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    color: var(--clr-muted);
    font-family: "Cairo", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-social:hover {
    background: var(--primary-12);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--clr-text);
}
.btn-auth {
    background: linear-gradient(135deg, var(--clr-primary), #4f46e5);
    border: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    transition: all 0.25s;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    margin-top: 4px;
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
    color: #fff;
}
.auth-link {
    color: var(--clr-primary-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.auth-link:hover {
    color: var(--clr-primary);
}
.forgot-link {
    color: var(--clr-muted);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: var(--clr-primary-2);
}
.feature-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-border);
    flex-wrap: wrap;
}
.feature-strip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--clr-muted);
}
.feature-strip-item i {
    color: var(--clr-green);
    font-size: 0.85rem;
}
.auth-side {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--clr-border);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.side-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--clr-primary-2);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.side-stat {
    background: var(--primary-12);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.side-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.side-stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clr-text);
    line-height: 1;
}
.side-stat-lbl {
    font-size: 0.75rem;
    color: var(--clr-muted);
    margin-top: 2px;
}
.auth-footer {
    text-align: center;
    padding: 20px;
    color: var(--clr-muted);
    font-size: 0.78rem;
    position: relative;
    z-index: 1;
}
.auth-footer a {
    color: var(--clr-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.auth-footer a:hover {
    color: var(--clr-primary-2);
}

/* ── Light Mode Overrides ── */
html[data-theme="light"] .auth-card { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
html[data-theme="light"] .auth-side { background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(6,182,212,0.03)); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
html[data-theme="light"] .side-stat { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
html[data-theme="light"] .btn-social { background: var(--clr-surface); }
html[data-theme="light"] .fc-dark:focus { background: rgba(99,102,241,0.03); }
html[data-theme="light"] .btn-auth { box-shadow: 0 8px 24px rgba(99,102,241,0.2); }
html[data-theme="light"] .btn-auth:hover { box-shadow: 0 12px 32px rgba(99,102,241,0.3); }
