* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.bg-video {
  position: fixed;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,15,30,.55) 0%, rgba(4,15,30,.75) 100%);
  z-index: -1;
}

.login-wrap {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  color: #eaf6ff;
  animation: floatIn .6s ease;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-title { font-size: 28px; font-weight: 600; text-align: center; letter-spacing: .5px; }
.login-sub { text-align: center; font-size: 13px; opacity: .7; margin-top: 6px; margin-bottom: 26px; }

.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 12px; opacity: .75; margin-bottom: 6px; letter-spacing: .3px; }

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border .2s, background .2s;
}

.field input:focus { border-color: #5fd0ff; background: rgba(255,255,255,0.12); }
.field input::placeholder { color: rgba(255,255,255,0.4); }

.error-msg { color: #ff8a9a; font-size: 12.5px; min-height: 16px; margin-bottom: 10px; text-align: center; }

.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1fb6d8, #2c7fe0);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,182,216,0.45); }

.forgot-link {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}
.forgot-link:hover { color: #fff; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: rgba(20,30,45,0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 30px 26px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  color: #eaf6ff;
  animation: floatIn .35s ease;
}

.modal-question { font-family: 'Dancing Script', cursive; font-size: 26px; margin-bottom: 22px; }
.modal-note { font-family: 'Dancing Script', cursive; font-size: 24px; margin-bottom: 20px; line-height: 1.4; }

.modal-actions { display: flex; gap: 14px; justify-content: center; }

.btn-yes, .btn-no {
  padding: 10px 26px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.btn-yes { background: linear-gradient(135deg, #1fb6d8, #2c7fe0); color: #fff; }
.btn-no { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #eaf6ff; }

@media (max-width: 480px) {
  .login-card { padding: 28px 22px; }
  .login-title { font-size: 24px; }
}
