@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

/* --- RESET & BASIC --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #0b0f1a, #020617);
  color: #fff;
  /* min-height use karein taki scroll ho sake */
  min-height: 100vh; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden; /* Sirf horizontal scroll band karein */
  /* Mobile pe keyboard khulne par layout na bigde isliye padding di hai */
  padding-bottom: 120px; 
  padding-top: 60px;
}

/* --- GLASS CARD (Form) --- */
.card {
  width: 90%;
  max-width: 420px; /* Desktop ke liye max width */
  padding: 35px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  text-align: center;
  position: relative;
  z-index: 10;
  margin: auto; /* Center karne ke liye */
}

.card h2 {
  margin-bottom: 25px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- INPUTS & SELECTS --- */
input, select, textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  outline: none;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #00c6ff;
    background: rgba(0, 0, 0, 0.5);
}

/* --- BUTTONS --- */
.action-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
  margin-top: 10px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 114, 255, 0.5);
}

/* --- LINKS --- */
.back-link {
    display: block;
    margin-top: 15px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}
.back-link:hover { color: #fff; }

/* --- MAGIC BUTTONS (Login Options) --- */
.bottom-buttons-container {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    padding: 0 15px;
    pointer-events: none; /* Click pass through empty space */
}

.magic-btn {
    pointer-events: auto; /* Button clickable rahe */
    position: relative;
    width: 180px;
    height: 60px;
    background: #242433;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.5),
                inset 5px 5px 20px rgba(255, 255, 255, 0.2),
                inset -5px -5px 15px rgba(0, 0, 0, 0.75),
                0 10px 20px rgba(0,0,0,0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: 0.4s ease;
}

.magic-btn:hover {
    transform: translateY(-5px);
    color: #29fd53;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25),
                inset 2px 2px 3px rgba(255, 255, 255, 0.25),
                inset -3px -3px 5px rgba(0, 0, 0, 0.5),
                0 0 10px rgba(41, 253, 83, 0.2);
}

/* --- STUDENT BANNER --- */
.student-banner {
  position: fixed; top: 0; left: 0; width: 100%; padding: 12px 20px;
  background: linear-gradient(90deg, #FF512F 0%, #DD2476 100%);
  color: white; text-align: center; text-decoration: none;
  font-weight: 600; font-size: 14px; z-index: 1000;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  animation: pulseGlow 2.5s infinite ease-in-out;
}
@keyframes pulseGlow {
  0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); }
}
.badge { background: white; color: #DD2476; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; }

/* --- FLOATING ICONS --- */
.floating-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.float { position: absolute; width: 45px; opacity: 0.15; animation: floatUp linear infinite; bottom: -100px; }
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* ========================================= */
/* RESPONSIVE DESIGN (Mobile & Tablet Rules) */
/* ========================================= */

/* Tablet (iPad, etc.) - 768px se 1024px tak */
@media (min-width: 481px) and (max-width: 1024px) {
    .card {
        max-width: 600px; /* Tablet pe thoda chouda card */
        width: 85%;
    }
    .magic-btn {
        width: 200px; /* Buttons thode bade easy touch ke liye */
    }
}

/* Mobile (Phones) - 480px se neeche */
@media (max-width: 480px) {
    body {
        padding-top: 80px; /* Banner overlap na kare */
        padding-bottom: 140px; /* Bottom buttons ke liye space */
    }

    .card {
        width: 95%; /* Screen ka full use kare */
        padding: 25px 20px; /* Padding kam kare */
    }

    .card h2 {
        font-size: 1.5rem; /* Heading choti kare */
    }

    /* Buttons ko mobile par adjust karein */
    .bottom-buttons-container {
        flex-direction: row; /* Side by side hi rakhein */
        gap: 10px; /* Gap kam karein */
        bottom: 15px;
    }

    .magic-btn {
        width: 48%; /* Screen ka aadha hissa lein */
        height: 50px; /* Height thodi kam */
        font-size: 13px; /* Text chota */
        border-radius: 15px;
    }
    
    /* Floating icons mobile par kam visible ya chhote karein */
    .float {
        width: 30px; 
    }
}