/* ===== LOGIN PAGE: OCEAN GLASSMORPHISM ===== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: 16px;
}

.login-body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden; /* Prevent scroll on login page */
    background: #0a192f; /* Fallback deep ocean blue */
    color: #fff;
}

/* --- Ocean Container & Gradients --- */
.ocean-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: linear-gradient(180deg, #0a192f 0%, #112240 40%, #1d3557 70%, #0f766e 100%);
}

/* --- Animated SVG Waves --- */
.wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%; /* Double width for seamless loop */
    height: 35vh; /* Responsive height */
    max-height: 300px;
    min-height: 100px;
}

.wave-1 { animation: waveMove 12s linear infinite; opacity: 0.9; }
.wave-2 { animation: waveMove 16s linear infinite reverse; opacity: 0.7; bottom: 10px; height: 30vh; max-height: 250px; }
.wave-3 { animation: waveMove 10s linear infinite; opacity: 0.5; bottom: 20px; height: 25vh; max-height: 200px; }

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half its width to loop */
}

/* --- Floating Bubbles --- */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: rise linear infinite;
    z-index: 1;
}

.bubble-1 { width: 20px; height: 20px; left: 10%; animation-duration: 8s; animation-delay: 0s; bottom: -20px; }
.bubble-2 { width: 40px; height: 40px; left: 25%; animation-duration: 12s; animation-delay: 2s; bottom: -40px; }
.bubble-3 { width: 15px; height: 15px; left: 40%; animation-duration: 7s; animation-delay: 4s; bottom: -15px; }
.bubble-4 { width: 60px; height: 60px; left: 55%; animation-duration: 15s; animation-delay: 1s; bottom: -60px; }
.bubble-5 { width: 25px; height: 25px; left: 75%; animation-duration: 9s; animation-delay: 3s; bottom: -25px; }
.bubble-6 { width: 35px; height: 35px; left: 85%; animation-duration: 11s; animation-delay: 5s; bottom: -35px; }
.bubble-7 { width: 10px; height: 10px; left: 15%; animation-duration: 6s; animation-delay: 6s; bottom: -10px; }
.bubble-8 { width: 45px; height: 45px; left: 45%; animation-duration: 13s; animation-delay: 2s; bottom: -45px; }
.bubble-9 { width: 30px; height: 30px; left: 65%; animation-duration: 10s; animation-delay: 4s; bottom: -30px; }
.bubble-10 { width: 50px; height: 50px; left: 90%; animation-duration: 14s; animation-delay: 1s; bottom: -50px; }

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-110vh) scale(0.5); opacity: 0; }
}

/* --- Glass Layout --- */
.glass-login-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.glass-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 40px 32px;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Glass Header --- */
.glass-header {
    text-align: center;
    margin-bottom: 32px;
}

.glass-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.8), rgba(6, 182, 212, 0.6));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Glass Alert --- */
.glass-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    backdrop-filter: blur(4px);
}

/* --- Glass Inputs --- */
.glass-input-group {
    position: relative;
    margin-bottom: 20px;
}

.glass-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: color 0.3s;
}

.glass-input-group input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input-group input:focus {
    border-color: #14b8a6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.glass-input-group input:focus + i { color: #14b8a6; }

.glass-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.glass-toggle-pass {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

.glass-toggle-pass:hover { color: #fff; }

/* --- Glass Button --- */
.glass-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0f766e, #06b6d4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.glass-btn:active { transform: translateY(0); }

.glass-btn .btn-loader { display: none; }
.glass-btn.loading .btn-text { display: none; }
.glass-btn.loading .btn-loader { display: inline; }
.glass-btn.loading { pointer-events: none; }

/* Shine Effect on Button */
.glass-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s;
}

.glass-btn:hover::after {
    transform: rotate(45deg) translateY(100%);
}

/* --- Glass Footer --- */
.glass-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.glass-footer strong { color: #5eead4; }

/* --- Mobile specific for login (Overrides if needed) --- */
@media (max-width: 768px) {
    .glass-card {
        padding: 32px 24px;
        max-width: 100%;
        border-radius: 20px;
    }
    .glass-header h1 { font-size: 24px; }
    .wave-svg { height: 25vh; max-height: 200px; }
    .bubble-4, .bubble-8, .bubble-10 { display: none; /* Hide biggest bubbles on mobile to save CPU */ }
}