/* ================================
   LEEP WATCH / LOVEWORLD BRANDING
================================ */

/* Primary (Blue) */
:root {
  --vz-primary: #1f3c88;
  --vz-primary-rgb: 31, 60, 136;

  --vz-secondary: #f5c542;
  --vz-secondary-rgb: 245, 197, 66;

  --vz-link-color: #1f3c88;
  --vz-link-hover-color: #142857;

  --vz-success: #2f8f46;
  --vz-info: #2f5bd5;
}

/* Buttons */
.btn-primary {
  background-color: var(--vz-primary);
  border-color: var(--vz-primary);
}

.btn-primary:hover {
  background-color: #142857;
  border-color: #142857;
}

.btn-dark {
  background-color: #142857;
  border-color: #142857;
}

/* Nav pills & tabs */
.nav-pills .nav-link.active,
.nav-tabs-custom .nav-link.active {
  background-color: var(--vz-primary);
  color: #fff;
}

/* Focus & inputs */
.form-control:focus {
  border-color: var(--vz-primary);
  box-shadow: 0 0 0 0.15rem rgba(31, 60, 136, 0.25);
}


/* ===========================
   AUTH HERO (LEFT SIDE)
=========================== */
.auth-hero {
  background: #000;
}



.auth-hero.loaded {
    position: relative;
    background-image: url("../images/login_bg.png") !important;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    overflow: hidden;

    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}


.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(31, 60, 136, 0.75),
        rgba(20, 40, 87, 0.72),
        rgba(31, 60, 136, 0.75)
    );
    background-size: 200% 200%;
    animation: gradientShift 18s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    animation: slideFadeIn 0.8s ease-out both;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Content on top of overlay */
.auth-hero-content {
    position: relative;
    z-index: 2;
}

/* Gold accent */
.text-gold {
    color: #f5c542 !important;
}

.btn-primary {
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(31, 60, 136, 0.25);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}



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

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    pointer-events: none;
    opacity: 0.9;
}
.success-check svg {
    width: 80px;
    height: 80px;
    stroke: #2f8f46;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: scaleIn .4s ease forwards;
}

.success-check circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleDraw .6s ease forwards;
}

.success-check path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw .3s ease .6s forwards;
}

@keyframes circleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.offline-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f5c542;
    color: #142857;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offline-badge span {
    width: 8px;
    height: 8px;
    background: #2f8f46;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47,143,70,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(47,143,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(47,143,70,0); }
}
@media (max-width: 768px) {
    .login-card {
        animation: mobileSlideUp .6s ease-out both;
    }
}

@keyframes mobileSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


 /* ========================================
           SPLASH SCREEN STYLES
        ======================================== */
        .app-splash {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg,rgb(79, 110, 247) 0%,rgb(48, 42, 230) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            overflow: hidden;
        }

        .app-splash::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 20s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        .app-splash-content {
            position: relative;
            z-index: 2;
        }

        .splash-logo {
            animation: logoEntry 1s ease-out;
        }

        @keyframes logoEntry {
            0% {
                opacity: 0;
                transform: scale(0.5) rotate(-10deg);
            }
            60% {
                transform: scale(1.1) rotate(5deg);
            }
            100% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }

        .splash-text {
            animation: fadeInUp 0.8s ease-out 0.3s both;
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .splash-loader {
            position: relative;
            width: 60px;
            height: 60px;
            margin: 20px auto 0;
        }

        .splash-loader::before,
        .splash-loader::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            animation: pulse 1.5s ease-in-out infinite;
        }

        .splash-loader::before {
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            animation: pulse 1.5s ease-in-out infinite;
        }

        .splash-loader::after {
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
            background: rgba(255, 255, 255, 0.4);
            animation: pulse 1.5s ease-in-out 0.3s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(0.8);
                opacity: 0.5;
            }
            50% {
                transform: scale(1.2);
                opacity: 1;
            }
        }

        .splash-spinner {
            width: 40px;
            height: 40px;
            margin: 0 auto;
            border: 3px solid rgba(255,255,255,0.3);
            border-top: 3px solid #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            position: relative;
            top: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .splash-particles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            pointer-events: none;
            animation: float 15s infinite ease-in-out;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0) translateX(0) scale(1);
                opacity: 0;
            }
            10% {
                opacity: 0.8;
            }
            90% {
                opacity: 0.8;
            }
            100% {
                transform: translateY(-100vh) translateX(50px) scale(0.5);
                opacity: 0;
            }
        }

        /* ========================================
           AUTH PAGE ANIMATIONS
        ======================================== */
        .auth-page-wrapper {
            animation: pageReveal 0.6s ease-out;
        }

        @keyframes pageReveal {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }


        .floating-icon {
            animation: float-gentle 3s ease-in-out infinite;
            display: inline-block;
        }

        @keyframes float-gentle {
            0%, 100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-20px);
            }
        }

        .text-gold {
            color: #ffd700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        /* Login Form Animations */
        .auth-form-container {
            animation: slideInRight 0.8s ease-out 0.4s both;
        }

        @keyframes slideInRight {
            0% {
                opacity: 0;
                transform: translateX(50px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }



        /* Mobile Logo Animation */
        .mobile-logo {
            animation: bounceIn 1s ease-out;
        }

        @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: scale(0.3) translateY(-50px);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
            70% {
                transform: scale(0.9);
            }
            100% {
                transform: scale(1) translateY(0);
            }
        }

        /* Shimmer Effect for Loading State */
        .shimmer {
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(255,255,255,0.3) 50%,
                transparent 100%
            );
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        /* Responsive Adjustments */
        @media (max-width: 991.98px) {
            .auth-page-wrapper {
                background: linear-gradient(135deg, #667eea 0%,rgb(17, 29, 135) 100%);
            }

            .bg-white {
                background: rgba(255, 255, 255, 0.98) !important;
                border-radius: 20px 20px 0 0;
                margin-top: 20%;
            }
        }

        /* PWA Install Badge Animation */
        .install-badge {
            animation: slideInDown 0.5s ease-out;
        }

        @keyframes slideInDown {
            0% {
                transform: translateY(-100%);
            }
            100% {
                transform: translateY(0);
            }
        }

        /* =====================================================
   INSTALL DECISION GATE
===================================================== */
.install-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  animation: gateIn .35s ease;
}

@keyframes gateIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
