* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Hanuman", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, rgb(29, 151, 108), rgb(147, 249, 185), rgb(29, 151, 108)) !important;
    overflow: hidden;
    position: relative;
}

/* Bubble container */
#bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: float linear infinite;
    transition: background-color 3s ease, transform 0.5s ease;
    bottom: -100px; /* Start from below the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #004467;
    font-weight: bold;
    cursor: pointer;
}

.bubble:hover {
    transform: scale(1.2);
    z-index: 10;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) translateX(20px) scale(1.2);
        opacity: 0;
    }
}

/* Login form styling */
.login-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: formAppear 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    z-index: 2;
}

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

.login-container h2 {
    color: #004467;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 28px;
}

.login-container p {
    color: rgb(94 94 94 / 80%);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    color: #004467;
    margin-bottom: 8px;
    font-size: 14px;
    padding-left: 5px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    outline: none;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-group input:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.input-group i {
    position: absolute;
    right: 20px;
    top: 43px;
    color: #1a2980;
    font-size: 18px;
}

span[role="alert"] {
    color: red;
    font-size: 13px;
    position: absolute;
    top: 85px;
    left: 10px;
}

.mb-more {
    margin-bottom: 35px;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #1a2980, #26d0ce);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.links a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #004467;
    transition: width 0.3s ease;
}

.links a:hover {
    color: #004467;
}

.links a:hover:after {
    width: 100%;
}

/* Bubble counter */
.bubble-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #004467;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 3;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #004467;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 3;
    /* display: flex; */
    flex-direction: column;
    gap: 8px;
}

.controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #004467;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Number display */
.number-display {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #004467;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 3;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        width: 90% !important;
        max-width: 350px !important;
        padding: 25px !important;
        margin: 0 auto !important;
        /* Ensure no top margin pushes it down */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Ensure body is properly centered for small screens */
    body {
        padding: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
    }
    
    .bubble-counter, .controls, .number-display {
        display: none;
    }
    
    /* Ensure bubbles are visible on mobile */
    #bubbles-container {
        z-index: 1 !important;
        display: block !important;
    }
    
    .bubble {
        z-index: 1 !important;
        opacity: 0.7 !important;
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Fix mobile body layout and centering */
    body {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        padding: 20px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    /* Ensure login container is properly centered on mobile */
    .login-container {
        width: 90% !important;
        max-width: 400px !important;
        padding: 30px !important;
        margin: auto !important;
        position: relative !important;
        z-index: 10 !important;
        /* Remove any top margin that might push it down */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Reduce animation complexity on mobile for better performance */
    .bubble {
        animation-duration: 15s !important;
        transform: translateZ(0); /* Force hardware acceleration */
        will-change: transform, opacity;
    }
    
    /* Ensure bubbles container is properly positioned */
    #bubbles-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
}