* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Background */
.bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #4f46e5, transparent 40%),
              radial-gradient(circle at 80% 30%, #06b6d4, transparent 40%),
              radial-gradient(circle at 50% 80%, #a855f7, transparent 40%),
              linear-gradient(135deg, #0b1220, #0f172a);
  z-index: -1;
}

/* Center wrapper */
.center-wrapper {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  box-sizing: border-box;
}


/* Login Card */
.login-box {
  width: 100%;
  max-width: 340px;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);

  border-radius: 16px;

  padding: 18px 20px; /* 🔥 reduced from 24px */

  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.25);

  margin: auto;
}

.login-box {
  margin: auto;
}

/* School header */
.school-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 10px;
}

.school-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.school-name {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #334155;
}

input, select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  outline: none;
  font-size: 14px;
  transition: 0.2s ease;
  background: white;
}

input:focus, select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* Button */
.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99,102,241,0.3);
}

/* Note */
.note {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 500px) {
  .login-box {
    padding: 22px;
    border-radius: 14px;
  }

  .school-name {
    font-size: 18px;
  }
}


/* Install button container */
.install-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* Install button style */
.install-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;

  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: white;

  box-shadow: 0 8px 20px rgba(34,197,94,0.25);
  transition: 0.25s ease;
}

.install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34,197,94,0.35);
}



/* Floating Top-Center Popup Alert */
.popup-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1000;
  min-width: 300px;
  max-width: 90%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
}

.popup-notification:not(.hidden) {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.popup-notification.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.popup-notification.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #4ade80;
}