/* ============================================================
   Zone Click — Auth Pages Stylesheet
   Compatible with the existing CSS variable / dark-light system
   ============================================================ */

/* ── Section wrapper ────────────────────────────────────────── */
.auth-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    background: var(--zc-bg, #0b1122);
}

/* ── Decorative blobs ────────────────────────────────────────── */
.auth-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 10%, rgba(22,84,245,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(91,143,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.35;
}

.auth-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--zc-primary, #1654f5);
    top: -150px;
    inset-inline-end: -100px;
}

.auth-orb-2 {
    width: 280px;
    height: 280px;
    background: var(--zc-accent, #38d9a9);
    bottom: -80px;
    inset-inline-start: -60px;
}

/* ── Card wrap ───────────────────────────────────────────────── */
.auth-card-wrap {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

/* ── Card ────────────────────────────────────────────────────── */
.auth-card {
    background: var(--zc-card-bg, rgba(20, 30, 60, 0.85));
    border: 1px solid var(--zc-border, rgba(255,255,255,0.08));
    border-radius: 1.5rem;
    padding: 2.75rem 2.5rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 24px 64px rgba(0,0,0,0.4),
        0 4px 16px rgba(22,84,245,0.15);
}

/* ── Logo ────────────────────────────────────────────────────── */
.auth-logo-wrap {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo {
    height: 48px;
    width: auto;
}

/* ── Heading ─────────────────────────────────────────────────── */
.auth-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--zc-text, #e8edff);
    text-align: center;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--zc-text-muted, rgba(200,210,255,0.55));
    text-align: center;
    margin-bottom: 1.75rem;
}

/* ── Alert ───────────────────────────────────────────────────── */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert-danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff7b8a;
}

/* ── Form ────────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* ── Field ───────────────────────────────────────────────────── */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--zc-text-muted, rgba(200,210,255,0.7));
    letter-spacing: 0.3px;
}

/* ── Input wrapper ───────────────────────────────────────────── */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--zc-input-bg, rgba(22, 84, 245, 0.04));
    border: 1.5px solid rgba(120, 150, 255, 0.22);
    border-radius: 0.85rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.auth-input-wrap:focus-within {
    border-color: var(--zc-primary, #1654f5);
    background: rgba(22, 84, 245, 0.07);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.10),
        0 0 0 3.5px rgba(22, 84, 245, 0.20),
        0 2px 12px rgba(22, 84, 245, 0.15);
}

.auth-input-wrap.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.04);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.10),
        0 0 0 3px rgba(220, 53, 69, 0.18);
}

.auth-input-icon {
    position: absolute;
    inset-inline-start: 1rem;
    font-size: 1rem;
    color: var(--zc-text-muted, rgba(200,210,255,0.4));
    pointer-events: none;
}

.auth-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9rem;
    color: var(--zc-text, #e8edff);
    caret-color: var(--zc-primary, #1654f5);
}

.auth-input::placeholder {
    color: var(--zc-text-muted, rgba(200,210,255,0.3));
}

/* Eye toggle button */
.auth-eye-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 0.9rem;
    color: var(--zc-text-muted, rgba(200,210,255,0.4));
    font-size: 1rem;
    transition: color 0.2s;
    line-height: 1;
}

.auth-eye-btn:hover {
    color: var(--zc-primary, #1654f5);
}

/* ── Error text ──────────────────────────────────────────────── */
.auth-error {
    font-size: 0.78rem;
    color: #ff7b8a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Remember me ─────────────────────────────────────────────── */
.auth-remember {
    margin-top: -0.25rem;
}

.auth-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--zc-text-muted, rgba(200,210,255,0.6));
    user-select: none;
}

.auth-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-check-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-check:checked ~ .auth-check-box {
    background: var(--zc-primary, #1654f5);
    border-color: var(--zc-primary, #1654f5);
}

.auth-check:checked ~ .auth-check-box::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg) translateY(-1px);
}

/* ── Submit button ───────────────────────────────────────────── */
.auth-submit-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--zc-primary, #1654f5) 0%, #2d6eff 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(22,84,245,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.auth-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(22,84,245,0.5);
}

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

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Card footer ─────────────────────────────────────────────── */
.auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.auth-back-link,
.auth-support-link {
    color: var(--zc-text-muted, rgba(200,210,255,0.5));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.2s;
}

.auth-back-link:hover,
.auth-support-link:hover {
    color: var(--zc-primary, #1654f5);
}

.auth-divider {
    color: var(--zc-border, rgba(255,255,255,0.15));
}

/* ── Light mode overrides ────────────────────────────────────── */
[data-theme="light"] .auth-section {
    background: var(--zc-bg, #f0f5ff);
}

[data-theme="light"] .auth-card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(22,84,245,0.12);
    box-shadow:
        0 0 0 1px rgba(22,84,245,0.06),
        0 16px 40px rgba(13,27,62,0.10),
        0 4px 12px rgba(22,84,245,0.08);
}

[data-theme="light"] .auth-title {
    color: var(--zc-text-dark, #0d1b3e);
}

[data-theme="light"] .auth-subtitle {
    color: rgba(13,27,62,0.55);
}

[data-theme="light"] .auth-label {
    color: rgba(13,27,62,0.7);
}

[data-theme="light"] .auth-input-wrap {
    background: rgba(22, 84, 245, 0.03);
    border-color: rgba(22, 84, 245, 0.20);
    box-shadow: inset 0 1px 3px rgba(13, 27, 62, 0.06);
}

[data-theme="light"] .auth-input-wrap:focus-within {
    background: rgba(22, 84, 245, 0.06);
    border-color: var(--zc-primary, #1654f5);
    box-shadow:
        inset 0 1px 3px rgba(13, 27, 62, 0.04),
        0 0 0 3.5px rgba(22, 84, 245, 0.15),
        0 2px 10px rgba(22, 84, 245, 0.12);
}

[data-theme="light"] .auth-input {
    color: var(--zc-text-dark, #0d1b3e);
}

[data-theme="light"] .auth-input::placeholder {
    color: rgba(13,27,62,0.35);
}

[data-theme="light"] .auth-input-icon {
    color: rgba(13,27,62,0.4);
}

[data-theme="light"] .auth-check-label {
    color: rgba(13,27,62,0.65);
}

[data-theme="light"] .auth-back-link,
[data-theme="light"] .auth-support-link {
    color: rgba(13,27,62,0.45);
}
