/* iChitty Auth Pages */
:root {
    --teal: #0D7377;
    --teal-light: #14A3A8;
    --teal-dark: #095456;
    --coral: #E85A4F;
    --navy: #1B2A4A;
    --mint: #A8E6CF;
    --mint-soft: #E8F8F0;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 16px;
}

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

body.auth-body {
    font-family: var(--font-body);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--navy);
}

.auth-bg-pattern {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.auth-bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(13, 115, 119, 0.35), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(232, 90, 79, 0.15), transparent 40%),
        linear-gradient(145deg, var(--navy) 0%, #0F3443 50%, var(--teal-dark) 100%);
    pointer-events: none;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

.auth-brand-panel {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.auth-home-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.auth-home-link:hover { color: var(--mint); }

.auth-brand-content {
    max-width: 400px;
}

.auth-logo .brand-mark {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--coral);
}

.auth-logo .brand-name {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
}

.auth-tagline {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 1rem 0 2rem;
    line-height: 1.5;
}

.auth-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.auth-features-list i {
    color: var(--mint);
    width: 20px;
}

.auth-company {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

.auth-form-panel {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

.auth-form-inner {
    width: 100%;
    max-width: 380px;
}

.auth-mobile-home {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-mobile-logo {
    margin-bottom: 1.5rem;
}

.auth-mobile-logo .brand-mark {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--coral);
}

.auth-mobile-logo .brand-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.auth-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.auth-subheading {
    color: #5A6478;
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
}

.auth-alert {
    font-size: 0.875rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--navy);
}

.auth-form .form-control {
    border: 1.5px solid #D8E0EC;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.925rem;
}

.auth-form .form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
}

.auth-form .input-group-text {
    background: var(--mint-soft);
    border: 1.5px solid #D8E0EC;
    border-right: none;
    color: var(--teal);
}

.auth-form .input-group .form-control {
    border-left: none;
}

.btn-auth {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 10px;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-auth:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.35);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #9CA3AF;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.auth-switch-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #5A6478;
}

.auth-switch-link a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

/* OTP tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    background: #EDF1F7;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #5A6478;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(27, 42, 74, 0.08);
}

.auth-pane { display: none; }
.auth-pane.active { display: block; }

.otp-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.otp-input-group input {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 1.5px solid #D8E0EC;
    border-radius: 10px;
}

.otp-input-group input:focus {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
}

.otp-resend {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #5A6478;
}

.otp-resend a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .auth-form-panel {
        max-width: 100%;
        box-shadow: none;
    }
}

@media (min-width: 992px) {
    .auth-brand-panel {
        display: flex;
    }
}

/* ── Demo login buttons ── */
.demo-login-box {
    margin-top: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, #F0FAF8 0%, #FFF5F3 100%);
    border: 1px dashed rgba(13, 115, 119, 0.35);
    border-radius: 12px;
}
.demo-login-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 0.15rem;
}
.demo-login-hint {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 0.75rem;
}
.demo-login-hint code {
    background: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--teal);
}
.demo-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.demo-login-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.65rem 0.35rem;
    border: 1.5px solid #D8E0EC;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}
.demo-login-btn i {
    font-size: 1rem;
    color: var(--teal);
}
.demo-login-btn span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}
.demo-login-btn small {
    font-size: 0.65rem;
    color: #9CA3AF;
}
.demo-login-btn:hover,
.demo-login-btn.active {
    border-color: var(--teal);
    background: var(--mint-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.15);
}
.demo-login-btn.demo-admin:hover,
.demo-login-btn.demo-admin.active {
    border-color: #C9A227;
    background: #FFF8E7;
}
.demo-login-btn.demo-admin i { color: #C9A227; }
.demo-login-btn.demo-collector:hover,
.demo-login-btn.demo-collector.active {
    border-color: var(--coral);
    background: #FFF0EE;
}
.demo-login-btn.demo-collector i { color: var(--coral); }
.demo-filled {
    animation: demoPulse 0.6s ease;
    border-color: var(--teal) !important;
}
@keyframes demoPulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 115, 119, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(13, 115, 119, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 115, 119, 0); }
}

/* ── Password visibility button ── */
.auth-eye-btn {
    cursor: pointer;
    border-left: 0 !important;
    background: #F8FAFC !important;
    color: #64748B;
    transition: color 0.2s, background 0.2s;
}
.auth-eye-btn:hover {
    color: var(--teal);
    background: #EEF6F6 !important;
}

/* ── Sleek AI Visual Stage (Login Brand Panel) ── */
.auth-brand-top {
    display: flex;
    align-items: center;
}
.ai-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(92, 230, 208, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}
.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3FE0D0;
    box-shadow: 0 0 0 0 rgba(63, 224, 208, 0.7);
    animation: aiDotPulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes aiDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(63, 224, 208, 0.65); opacity: 1; }
    50%      { box-shadow: 0 0 0 7px rgba(63, 224, 208, 0); opacity: 0.85; }
}

.ai-visual-stage {
    margin: 0 0 1.6rem;
    padding: 1.15rem 1.15rem 1rem;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(13, 115, 119, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(6, 17, 33, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ai-orb-scene {
    position: relative;
    width: 100%;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-orb-svg {
    width: 260px;
    height: 180px;
    overflow: visible;
}

.ai-aura {
    transform-origin: 130px 86px;
    animation: aiAuraBreathe 4.2s ease-in-out infinite;
}
.ai-orbit-outer {
    transform-origin: 130px 86px;
    animation: aiSpinCW 16s linear infinite;
}
.ai-orbit-inner {
    transform-origin: 130px 86px;
    animation: aiSpinCCW 10.5s linear infinite;
}
.ai-core-ring {
    transform-origin: 130px 86px;
    animation: aiSpinCW 22s linear infinite;
}
.ai-sparkle {
    transform-origin: 130px 85px;
    animation: aiSparklePulse 3.4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(92, 230, 208, 0.75));
}
.ai-twinkle {
    animation: aiTwinkle 2.4s ease-in-out infinite;
}
.ai-twinkle-delay {
    animation: aiTwinkle 2.4s ease-in-out infinite 1.2s;
}
.ai-wave-path {
    stroke-dasharray: 280;
    stroke-dashoffset: 0;
    animation: aiWaveFlow 5.5s ease-in-out infinite;
}

@keyframes aiAuraBreathe {
    0%, 100% { transform: scale(0.92); opacity: 0.72; }
    50%      { transform: scale(1.08); opacity: 1; }
}
@keyframes aiSpinCW {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes aiSpinCCW {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}
@keyframes aiSparklePulse {
    0%, 100% { transform: scale(0.95) rotate(0deg); opacity: 0.9; }
    50%      { transform: scale(1.09) rotate(10deg); opacity: 1; }
}
@keyframes aiTwinkle {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}
@keyframes aiWaveFlow {
    0%   { stroke-dashoffset: 280; opacity: 0.45; }
    50%  { stroke-dashoffset: 0;   opacity: 1; }
    100% { stroke-dashoffset: -280; opacity: 0.45; }
}

/* Floating glass chips */
.ai-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(11, 28, 48, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.69rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}
.ai-chip i {
    color: #5CE6D0;
    font-size: 0.7rem;
}
.ai-chip-tl {
    top: 8px;
    left: 2px;
    animation: aiFloat 4.6s ease-in-out infinite;
}
.ai-chip-tr {
    top: 22px;
    right: 2px;
    animation: aiFloat 4.6s ease-in-out infinite 1.4s;
}
.ai-chip-tr i { color: #F5D76E; }
.ai-chip-bl {
    bottom: 24px;
    left: 6px;
    animation: aiFloat 4.6s ease-in-out infinite 2.6s;
}
.ai-chip-bl i { color: #F07A6E; }

@keyframes aiFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.ai-metrics-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ai-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ai-metric-val {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.ai-metric-lbl {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 0.12rem;
}
.ai-metric-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.14);
}

/* Mobile AI strip */
.ai-mobile-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0F233D 0%, #0D7377 100%);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(13, 115, 119, 0.18);
}


/* ═══════════════════════════════════════════════════════════════════
   Royal Violet · Rose-Magenta · Warm Gold Luxury Login Theme (Nov 2026)
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --teal: #6D28D9;
    --teal-light: #8B5CF6;
    --mint: #FBBF24;
    --mint-soft: #F5F3FF;
    --navy: #1E1B4B;
    --coral: #EC4899;
}

.auth-body {
    background: linear-gradient(135deg, #0D0A24 0%, #1E164B 48%, #2E1065 100%) !important;
}

.auth-bg-gradient {
    background:
        radial-gradient(650px 500px at 15% 20%, rgba(124, 58, 237, 0.35), transparent 65%),
        radial-gradient(550px 450px at 80% 80%, rgba(236, 72, 153, 0.25), transparent 65%),
        radial-gradient(450px 400px at 45% 55%, rgba(56, 189, 248, 0.14), transparent 65%) !important;
}

.auth-brand-panel {
    background: transparent !important;
    justify-content: space-between !important;
    padding: 2.5rem 3rem !important;
}

.auth-logo .brand-mark,
.auth-mobile-logo .brand-mark {
    background: linear-gradient(135deg, #FBBF24 0%, #EC4899 55%, #7C3AED 100%) !important;
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.4) !important;
}

/* Pure Animated Aurora Stage */
.aurora-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 380px;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    opacity: 0.55;
    pointer-events: none;
}
.aurora-blob-1 {
    width: 240px; height: 240px;
    background: #7C3AED;
    top: 14%; left: 16%;
    animation: blobDrift1 9s ease-in-out infinite;
}
.aurora-blob-2 {
    width: 220px; height: 220px;
    background: #EC4899;
    bottom: 14%; right: 14%;
    animation: blobDrift2 11s ease-in-out infinite;
}
.aurora-blob-3 {
    width: 170px; height: 170px;
    background: #F59E0B;
    top: 42%; right: 24%;
    opacity: 0.35;
    animation: blobDrift1 13s ease-in-out infinite reverse;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(22px, -18px) scale(1.12); }
}
@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-24px, 16px) scale(1.1); }
}

.aurora-svg {
    position: relative;
    z-index: 2;
    width: min(390px, 86%);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(124, 58, 237, 0.32));
}

.lux-aura {
    transform-origin: 180px 180px;
    animation: luxBreathe 4.5s ease-in-out infinite;
}
.lux-orbit-1 {
    transform-origin: 180px 180px;
    animation: luxSpinCW 15s linear infinite;
}
.lux-orbit-2 {
    transform-origin: 180px 180px;
    animation: luxSpinCCW 11s linear infinite;
}
.lux-orbit-3 {
    transform-origin: 180px 180px;
    animation: luxSpinCW 20s linear infinite;
}
.lux-prism-float {
    transform-origin: 180px 180px;
    animation: luxPrismFloat 3.8s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.65));
}
.lux-star-1 { animation: luxTwinkle 2.4s ease-in-out infinite; }
.lux-star-2 { animation: luxTwinkle 2.8s ease-in-out infinite 0.7s; }
.lux-star-3 { animation: luxTwinkle 2.2s ease-in-out infinite 1.3s; }

@keyframes luxBreathe {
    0%, 100% { transform: scale(0.92); opacity: 0.75; }
    50%      { transform: scale(1.1);  opacity: 1; }
}
@keyframes luxSpinCW {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes luxSpinCCW {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}
@keyframes luxPrismFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-7px) scale(1.06); }
}
@keyframes luxTwinkle {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}

/* Luxury Form Panel Accents */
.auth-form-panel {
    background: #FFFFFF !important;
}
.auth-heading {
    color: #1E1B4B !important;
}
.auth-form .form-control:focus {
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3.5px rgba(124, 58, 237, 0.16) !important;
}
.auth-form .input-group-text {
    color: #6D28D9 !important;
    background: #F5F3FF !important;
    border-color: #E2E8F0 !important;
}
.btn-auth {
    background: linear-gradient(135deg, #6D28D9 0%, #4F46E5 52%, #EC4899 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
.btn-auth:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.07);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.38) !important;
}
.form-check-input:checked {
    background-color: #6D28D9 !important;
    border-color: #6D28D9 !important;
}
