/* ═══════════════════════════════════════════════
   PREMIUM NEON GLASS LOGIN — OcL Link
   Dark + Glassmorphism + Red Neon + Mouse Glow
   ═══════════════════════════════════════════════ */

:root {
    --bg-base: #050507;
    --card-glass: rgba(255, 255, 255, 0.04);
    --card-glass-border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #7a7a88;
    --accent: #E4002B;
    --accent-glow: rgba(228, 0, 43, 0.6);
    --accent-soft: rgba(228, 0, 43, 0.15);
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.07);
    --neon-red: #ff1744;
    --neon-crimson: #e4002b;
    --neon-rose: #ff4081;
}

/* ── Base Body ── */
body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ── Animated Neon Background ── */
.neon-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Floating red neon orbs */
.neon-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.neon-orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--neon-red), transparent 70%);
    top: -12%;
    left: -8%;
    animation: floatOrb1 12s ease-in-out infinite;
}

.neon-orb--2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--neon-crimson), transparent 70%);
    bottom: -15%;
    right: -8%;
    animation: floatOrb2 15s ease-in-out infinite;
}

.neon-orb--3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--neon-rose), transparent 70%);
    top: 35%;
    right: 15%;
    opacity: 0.3;
    animation: floatOrb3 18s ease-in-out infinite;
}

.neon-orb--4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--neon-red), transparent 70%);
    bottom: 25%;
    left: 12%;
    opacity: 0.25;
    animation: floatOrb4 20s ease-in-out infinite;
}

/* Animated neon grid lines */
.neon-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(228, 0, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(228, 0, 43, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Mouse-follow glow */
.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 0, 43, 0.12), rgba(255, 23, 68, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: left 0.25s ease-out, top 0.25s ease-out, opacity 0.4s;
    opacity: 0;
    filter: blur(30px);
}

.mouse-glow.active {
    opacity: 1;
}

/* Orb float animations */
@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(60px, 40px) scale(1.1);
    }

    50% {
        transform: translate(30px, 80px) scale(0.95);
    }

    75% {
        transform: translate(-20px, 50px) scale(1.05);
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-50px, -30px) scale(1.08);
    }

    50% {
        transform: translate(-80px, -60px) scale(0.92);
    }

    75% {
        transform: translate(-30px, -80px) scale(1.1);
    }
}

@keyframes floatOrb3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 50px) scale(1.15);
    }

    66% {
        transform: translate(30px, -30px) scale(0.9);
    }
}

@keyframes floatOrb4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 60px) scale(0.95);
    }
}

/* Subtle noise texture */
.neon-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 2;
}

/* ── Glassmorphism Login Card ── */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    background: var(--card-glass);
    border: 1px solid var(--card-glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 80px rgba(228, 0, 43, 0.05);
    animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: box-shadow 0.4s ease;
}

.login-card:hover {
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 100px rgba(228, 0, 43, 0.1);
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Header ── */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header img {
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(228, 0, 43, 0.4));
    transition: filter 0.3s, transform 0.3s;
}

.auth-header img:hover {
    filter: drop-shadow(0 0 30px rgba(228, 0, 43, 0.6));
    transform: scale(1.05);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 0.35rem 0;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Inputs ── */
.premium-input-group {
    margin-bottom: 1.1rem;
    position: relative;
}

.premium-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

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

.input-wrapper i.icon-left {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    pointer-events: none;
    transition: 0.3s;
}

.premium-input-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0.9rem 1rem 0.9rem 2.6rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
    backdrop-filter: blur(8px);
}

.premium-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.premium-input-group input:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.premium-input-group input:focus {
    border-color: var(--accent);
    background: rgba(228, 0, 43, 0.03);
    box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(228, 0, 43, 0.1);
}

.premium-input-group input:focus~.icon-left,
.input-wrapper:focus-within .icon-left {
    color: var(--neon-red);
}

.pwd-toggle {
    position: absolute;
    right: 1rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.2s;
    z-index: 2;
    font-size: 0.95rem;
}

.pwd-toggle:hover {
    color: var(--text-primary);
}

.caps-warning {
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: -4px;
    margin-bottom: 8px;
}

/* ── Options ── */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    font-size: 0.85rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.2s;
    user-select: none;
}

.auth-checkbox:hover {
    color: var(--text-primary);
}

.auth-checkbox input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    background: var(--input-bg);
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    flex-shrink: 0;
}

.auth-checkbox input:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.auth-checkbox input:checked {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(228, 0, 43, 0.4);
}

.auth-checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ── Buttons ── */
.btn-submit {
    width: 100%;
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--neon-crimson), var(--neon-red));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-submit:hover {
    box-shadow: 0 0 30px rgba(228, 0, 43, 0.4), 0 8px 24px rgba(228, 0, 43, 0.2);
    transform: translateY(-2px);
}

.btn-submit:hover::before {
    transform: translateX(100%);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(228, 0, 43, 0.3);
}

.btn-bio {
    width: 100%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.btn-bio:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

/* ── Messages/Links ── */
.error-msg {
    background: rgba(228, 0, 43, 0.08);
    border: 1px solid rgba(228, 0, 43, 0.2);
    color: #ff8095;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1.25rem;
    display: none;
    backdrop-filter: blur(8px);
}

.auth-terms {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s;
}

.auth-terms:hover {
    color: var(--text-primary);
}

/* ── PWA Banner ── */
.pwa-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: calc(100% - 48px);
    max-width: 380px;
    background: rgba(20, 20, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
    opacity: 0;
    backdrop-filter: blur(20px);
}

.pwa-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-icon {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pwa-icon img {
    height: 20px;
}

.pwa-text h4 {
    margin: 0 0 2px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pwa-text p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.pwa-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.pwa-btn:hover {
    box-shadow: 0 0 15px rgba(228, 0, 43, 0.4);
}

.pwa-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    padding: 4px;
    transition: 0.2s;
}

.pwa-close:hover {
    color: var(--text-primary);
}

/* ── Mobile ── */
@media (max-width: 480px) {
    body.login-page {
        align-items: flex-start;
        padding: 0;
    }

    .neon-orb {
        filter: blur(60px);
        opacity: 0.35;
    }

    .neon-orb--1 {
        width: 250px;
        height: 250px;
    }

    .neon-orb--2 {
        width: 200px;
        height: 200px;
    }

    .neon-orb--3,
    .neon-orb--4 {
        display: none;
    }

    .login-card {
        padding: 2.5rem 1.5rem;
        margin-top: 8vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        max-width: 100%;
        backdrop-filter: blur(16px);
    }

    .auth-header img {
        height: 65px;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .pwa-banner {
        width: 100%;
        max-width: none;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        padding: 20px 16px 30px;
    }
}