/* main.css */

/* Fonts & Colors */
body {
  font-family: 'Poppins', sans-serif;
  background: #0f172a;
  color: #fff;
  overflow-x: hidden;
  margin: 0;
}

/* Transparent Navbar */
.navbar {
  background: transparent !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(15,23,42,0.95) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

/* Hero / Login / Register Buttons */
.btn-login { background: #0ea5e9; border: none; }
.btn-login:hover { background: #0284c7; transform: scale(1.05); }
.btn-register { background: #22c55e; border: none; }
.btn-register:hover { background: #16a34a; transform: scale(1.05); }

/* Hero Section */
.hero-section { padding: 100px 20px 60px 20px; text-align: center; }
.hero-title { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.3rem; color: #cbd5e1; }

/* Feature Cards */
.feature-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 30px 20px;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; color: #0ea5e9; }

/* Section Titles */
.section-title { font-size: 2rem; margin-bottom: 2rem; color: #fff; }

/* Countdown */
.countdown-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 15px;
  display: inline-block;
}
.countdown-item { margin: 0 10px; text-align: center; }
.countdown-value {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.countdown-value:hover { transform: scale(1.2); box-shadow: 0 0 15px #0ea5e9, 0 0 25px #22c55e; }
.countdown-label { margin-top: 5px; font-size: 0.9rem; color: #cbd5e1; }

/* Forms */
.form-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 15px;
  max-width: 450px;
  margin: 60px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.form-card h2 { color: #fff; margin-bottom: 25px; text-align: center; }
.form-control { background: rgba(255,255,255,0.1); border: none; color: #fff; }
.form-control:focus { background: rgba(255,255,255,0.15); color: #fff; border: none; box-shadow: 0 0 5px #0ea5e9; }
.btn-submit { width: 100%; margin-top: 20px; }

/* =======================
 Student Registration Page
======================= */


.side-image {
  background: url('/assets/img/study77.jpg') center/cover no-repeat;

  filter: brightness(60%);
  position: fixed;  /* <-- changed from absolute */
  left: 0;
  top: 0;
  width: 55%;
  height: 100vh;   /* <-- changed from 100% */
  z-index: -1;
  max-height: 100vh; /* <-- added to prevent stretching */
}







.register-wrapper p a {
  color: #00e0ff;
}



/* Registration & Login Shared Styles */
.register-wrapper,
.login-wrapper {
    backdrop-filter: blur(14px);
    background: rgba(0,0,0,0.35);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    animation: fadeInUp 0.6s ease-in-out;
    max-width: 450px;
    width: 100%;
}

.register-container,
.login-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: flex-end; /* Form on right side */
    align-items: center;
    padding-right: 4%;
}

.side-image,
.side-login-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(60%);
    z-index: -1;
}

/* Specific images for each page */

.side-login-image { background-image: url('../img/study3.jpg'); } /* Login */


.form-heading {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.form-label {
    color: #fff;
    font-weight: 500;
}

@keyframes fadeInUp {
    0% { opacity:0; transform:translateY(20px); }
    100% { opacity:1; transform:translateY(0); }
}

/* Optional: ensure input text is visible */
.register-wrapper .form-control,
.login-wrapper .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
}

.register-wrapper .form-control:focus,
.login-wrapper .form-control:focus {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    box-shadow: 0 0 5px #0ea5e9;
}

.particles-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}



@media (max-width: 768px) {
  .particles-bg {
    display: none;
  }
}


.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}
