* {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

/* BACKGROUND */
.page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* GLASS CARD */
.glass-card {
  width: 100%;
  max-width: 420px;
  padding: 38px 34px;
  border-radius: 26px;
  text-align: center;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  animation: enter 0.8s ease;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* LOGO */
.logo img {
  max-height: 68px;
  margin-bottom: 18px;
}

/* TEXT */
h1 {
  color: #ffffff;
  margin: 0;
  font-size: 28px;
}

.subtitle {
  color: #cce3f0;
  margin: 10px 0 26px;
  font-size: 15px;
}

/* INPUTS */
input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  background: rgba(255,255,255,0.9);
}

input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,210,255,0.5);
}

/* CAPTCHA */
.captcha-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.captcha-wrap img {
  border-radius: 8px;
}

/* BUTTON */
button {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: none;
  font-size: 18px;
  color: white;
  cursor: pointer;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
  box-shadow: 0 10px 30px rgba(0,210,255,0.4);
  transition: transform 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

/* OVERLAY */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* OVERLAY CARD */
.overlay-card {
  background: #ffffff;
  width: 90%;
  max-width: 320px;
  padding: 30px 26px;
  border-radius: 22px;
  text-align: center;
}

/* ICON STACK */
.icon-stack {
  position: relative;
  height: 50px;
  margin-bottom: 14px;
}

.icon {
  position: absolute;
  inset: 0;
  font-size: 32px;
  opacity: 0;
}

.spin {
  opacity: 1;
  animation: spin 1s linear infinite;
}

.file {
  animation: fade 2s infinite;
}

.tick {
  animation: tick 2s infinite;
}

/* ICON ANIMATIONS */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade {
  0%,50% { opacity: 0; }
  60%,90% { opacity: 1; }
}

@keyframes tick {
  0%,70% { opacity: 0; }
  80%,100% { opacity: 1; }
}

/* PROGRESS */
.progress {
  height: 8px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
  transition: width 0.6s ease;
}

/* MINI CERT */
.mini-cert {
  margin-top: 16px;
}

.cert-head {
  height: 14px;
  background: #3a7bd5;
  border-radius: 4px;
}

.cert-line {
  height: 8px;
  background: #ccc;
  margin-top: 6px;
  border-radius: 4px;
}

.cert-line.short {
  width: 60%;
}

#closeBtn {
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #444, #111);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: none;
}

#closeBtn:hover {
  opacity: 0.9;
}

