body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0a4d3f, #1c4966);
    color: #f5f5f5;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
  text-align: center;
  padding: 30px 20px;
  border-bottom: 3px solid #145a32;
  overflow: hidden;
  position: relative;
  height: 60px;
  background: transparent;
}

header h1 {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
  user-select: none;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 100%;      /* Start just off-screen to the right */
  transform: translateY(-50%);
  color: #f5f5f5;
  animation: slideFade 8s linear infinite;
}

/* Slide left from right to left and fade out near the end */
@keyframes slideFade {
  0% {
    left: 100%;
    opacity: 1;
  }
  70% {
    left: 0;
    opacity: 1;
  }
  100% {
    left: -100%;
    opacity: 0;
  }
}
/* Animation for Header fadeInDown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Waving hand animation (not used in this header but kept if needed) */
.wave {
    display: inline-block;
    animation: wave-animation 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0%, 60%, 100% { transform: rotate(0deg); }
    20%, 40% { transform: rotate(20deg); }
}

/* MAIN SECTION */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Soft Pulse Glow Animation for Logo */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(24, 144, 255, 0.6));
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(0, 185, 107, 0.9));
    }
}

/* Smooth Fade-in for Login Container */
@keyframes fadeInSmooth {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 350px;
    text-align: center;
    animation: fadeInSmooth 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0; /* start hidden for fade-in */
}

.login-container img {
    width: 80px;
    margin-bottom: 15px;
    animation: pulseGlow 2s infinite ease-in-out;
}

h2 {
    margin-bottom: 10px;
    color: #333;
}

.sub-text {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

/* FORM */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 5px rgba(24, 144, 255, 0.3);
}

.login-btn {
    background: linear-gradient(135deg, #00b96b, #1890ff);
    border: none;
    padding: 12px;
    width: 100%;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #009f5a, #0d6efd);
}

/* LINKS */
.links {
    margin-top: 15px;
    font-size: 14px;
}

.links a {
    color: #1890ff;
    text-decoration: none;
    transition: color 0.2s;
}

.links a:hover {
    color: #0077cc;
    text-decoration: underline;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, rgba(0, 185, 107, 0.8), rgba(24, 144, 255, 0.8));
    font-size: 13px;
    color: #f1f1f1;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }

    header h1 {
        font-size: 18px;
        padding: 12px 20px;
    }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a, #333);
        color: #f1f1f1;
    }

    header h1 {
        background: linear-gradient(135deg, rgba(34, 34, 34, 0.9), rgba(51, 51, 51, 0.9));
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .login-container {
        background: #222;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .input-group input {
        background: #333;
        border: 1px solid #555;
        color: #f1f1f1;
    }
}

/* Animated Header Sliding and Color Change */
/* This CSS works with JS to slide and color-change the header text */
