/* ======================= GLOBAL RESET ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Orbitron', sans-serif;
    background: #ffffff !important;
    /* ← MAIN BACKGROUND: WHITE */
    color: #333333;
    overflow-x: hidden;
}

/* ======================= INDEX PAGE - WELCOME SCREEN ======================= */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 1.8s ease-out;
}

/* No overlay needed anymore - white background is clean */
.background-overlay {
    display: none !important;
}

/* ======================= LOGO AREA ======================= */
.logo-container {
    position: relative;
    margin-bottom: 12vh;
    z-index: 10;
}

.byd-logo {
    width: 130px;
    max-width: 70vw;
    filter: drop-shadow(0 0 35px rgba(105, 109, 113, 0.3));
    animation: logoFloat 6s ease-in-out infinite;
    z-index: 10;
    /* filter: drop-shadow(0 0 5px rgba(17, 17, 17, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); */
}

/* Electric Ring - adjusted for white background */
/* ======================= LOGO AREA - SMALLER ELECTRIC RING ======================= */
.electric-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    border: 3px solid transparent;
    /* Slightly thicker for visibility */
    border-top-color: white;
    border-left-color: #696D71;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spinOnly 8s linear infinite;
    box-shadow: 0 0 60px #696d71;
    /* Strong blue glow using #4f9edd */
    z-index: 5;
}

.pulse-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    /* ← reduced from 300px */
    height: 220px;
    /* ← reduced from 300px */
    background: radial-gradient(circle,
            white 10%,
            rgba(105, 109, 113, 0.6) 45%,
            transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: electricPulse 3s infinite;
    z-index: 5;
}

/* ======================= WELCOME CARD (INDEX) ======================= */
.loading-text {
    text-align: center;
    opacity: 0;
    animation: textFadeIn 1s ease-out 1s forwards;
    z-index: 20;
    padding: 30px 50px;
    background: #696D71 !important;
    /* ← CARD BACKGROUND */
    color: #ffffff !important;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    margin-top: 8vh;
}

.loading-text h2 {
    font-size: 1.4rem;
    font-weight: 900 !important;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 10px;
    margin-bottom: 12px;

    /* Add this for the glow */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.loading-text p {
    font-size: 1.0rem;
    color: #e0e0e0;
    letter-spacing: 6px;
    margin-bottom: 40px;
    opacity: 0.9;
    /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); */
}

/* Loader */
.loader {
    width: 90px;
    height: 90px;
    border: 8px solid#696d71;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pureSpin 1.4s linear infinite;
    box-shadow: 0 0 40px white;
    margin: 0 auto;
}

/* ======================= ANIMATIONS ======================= */
@keyframes pureSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinOnly {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes electricPulse {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ======================= RESPONSIVE (INDEX) ======================= */
@media (max-width: 768px) {
    .loading-text {
        padding: 25px 40px;
    }

    .loading-text h2 {
        font-size: 2.1rem;
        letter-spacing: 8px;
    }

    .byd-logo {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .loading-text {
        padding: 20px 30px;
    }

    .loading-text h2 {
        font-size: 1.2rem;
        letter-spacing: 6px;
    }

    .byd-logo {
        width: 130px;
    }

    .loader {
        width: 70px;
        height: 70px;
    }
}

/* ======================= SIGNUP PAGE ======================= */
.signup-body {
    min-height: 100vh;
    background: #ffffff !important;
    /* ← SAME WHITE BACKGROUND */
    /* padding: 10px 0; */
}

.signup-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.signup-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 0 16px;
}

.byd-logo-signup {
    display: block;
    margin: 0 auto 20px;
    width: 130px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

.signup-card {
    background: #696D71 !important;
    /* ← CARD BACKGROUND */
    color: #ffffff !important;
    padding: 20px 10px;
    border-radius: 20px;
    border: none;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    text-align: center;
    backdrop-filter: blur(10px);
}

.signup-card h2 {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #ffffff;
}

.showroom-tag {
    margin-bottom: 8px !important;
    /* ← This is the key line */
    line-height: 1.3;
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 28px;
    font-weight: 500;
}

/* Messages */
.msg {
    padding: 14px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.msg.error {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.4);
}

.msg.success {
    background: rgba(100, 255, 100, 0.2);
    border: 1px solid rgba(100, 255, 100, 0.4);
}

/* Button */
.signup-form button {
    width: 100%;
    padding: 10px;
    margin-top: 24px;
    background: #ffffff;
    color: #696D71;
    border: none;
    border-radius: 14px;
    font-size: 1.0rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 360px) {
    .signup-card {
        padding: 32px 24px;
    }

    .signup-card h2 {
        font-size: 1.8rem;
    }
}

/* Glowing blue shadow (#4f9edd) for inputs, select, and submit button */
/* Glowing WHITE shadow for inputs, select, and submit button */
.input-group input,
.input-group select,
.signup-form button {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.signup-form button:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}



/* Glowing blue shadow (#4f9edd) for the BYD logo on signup page */
.byd-logo-signup {
    filter: drop-shadow(0 0 20px #696d71) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4)) !important;
    transition: filter 0.4s ease;
}

.byd-logo-signup:hover {
    filter: drop-shadow(0 0 30px #696d71) drop-shadow(0 0 60px rgba(255, 255, 255, 0.5)) !important;
}