
/* ===== Responsive base rules — ADDED to improve mobile behavior (non-destructive) ===== */
:root { --responsive-padding: 1rem; }

/* Make images and videos scale */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Flexible container pattern */
.container {
  width: 100%;
  max-width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--responsive-padding);
  box-sizing: border-box;
}

/* Make general elements box-sizing friendly */
*, *::before, *::after { box-sizing: border-box; }

/* Ensure common full-width helpers */
.w-100 { width: 100% !important; max-width: 100% !important; }

/* Navbar responsive helper - final mobile behaviour handled via media query appended later */

:root {
    --brand-dark: #3D3F94;
    --brand-mid: #00AFF0;
    --brand-light: #C9E4F5;
    --text-dark: #222;
    --text-light: #555;
    --bg-main: #FFFFFF;
    --bg-alt: #F8FBFD;
    --border-light: #E0E0E0;
    --shadow-soft: rgba(0, 0, 0, 0.08);
}

/* ==============================
   Background & Layout
============================== */
body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 30% 20%, #e7f4ff, #c9e4f5 50%, #dde5ff 100%);
    overflow: hidden;
    position: relative;
    color: var(--text-dark);
}

/* Ambient animated glow */
body::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 50%;
    width: 100%; max-width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 175, 240, 0.3) 0%, transparent 70%);
    transform: translateX(-50%);
    animation: glowPulse 6s infinite ease-in-out;
    filter: blur(120px);
    z-index: 0;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
}

/* ==============================
   Login Card
============================== */
.login-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 14px;
    width: 100%; max-width: 360px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(61, 63, 148, 0.15);
    border: 1px solid rgba(0, 175, 240, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(61, 63, 148, 0.25);
}

/* ==============================
   Titles & Text
============================== */
.login-card h2 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.login-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ==============================
   Input Fields
============================== */
.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-mid);
    box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.2);
}

.input-group::before {
    content: attr(data-icon);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--brand-mid);
}

/* ==============================
   Buttons
============================== */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--brand-mid);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 175, 240, 0.4);
}

.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(61, 63, 148, 0.4);
}

/* ==============================
   Footer Link
============================== */
.back-home {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--brand-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* ==============================
   Error Message
============================== */
#login-error {
    color: #e63946;
    background-color: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.25);
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

#login-error.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* ==============================
   Responsive
============================== */
@media (max-width: 480px) {
    .login-card {
        width: 90%;
        padding: 30px;
    }
}