/* ── Quantum Precision Interface — Pro-A-Ton ── */

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #020817;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Canvas ── */
#tunnel { position: fixed; inset: 0; z-index: 0; }

/* ── Page ── */
.page {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10;
  padding: 20px;
}

/* ── Brand ── */
.brand { text-align: center; margin-bottom: 40px; }

.brand-logo {
  font-size: 24px; font-weight: 700;
  letter-spacing: 0.24em; color: #fff;
  text-transform: uppercase;
}
.brand-logo em { font-style: normal; color: #00e5ff; }

.brand-sub {
  font-size: 8.5px; font-weight: 400;
  letter-spacing: 0.42em; color: rgba(255,255,255,0.18);
  text-transform: uppercase; margin-top: 9px;
}

.brand-qubit {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 11px; font-style: italic;
  color: rgba(0, 229, 255, 0.22);
  letter-spacing: 0.05em;
  margin-top: 10px;
}

/* ── Card ── */
.card {
  background: rgba(4, 12, 28, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  padding: 36px 38px 34px;
  width: 370px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 28px 72px rgba(0,0,0,0.72),
    inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  animation: card-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Top shimmer */
.card::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.38), transparent);
}

/* Corner brackets */
.corner { position: absolute; width: 10px; height: 10px; pointer-events: none; }
.corner::before, .corner::after {
  content: ''; position: absolute; background: rgba(0,229,255,0.35);
}
.corner::before { width: 1px; height: 100%; }
.corner::after  { height: 1px; width: 100%; }
.corner-tl { top: -1px; left: -1px; }
.corner-tl::before, .corner-tl::after { top: 0; left: 0; }
.corner-tr { top: -1px; right: -1px; }
.corner-tr::before { top: 0; right: 0; left: auto; }
.corner-tr::after  { top: 0; right: 0; left: auto; }
.corner-bl { bottom: -1px; left: -1px; }
.corner-bl::before { bottom: 0; top: auto; left: 0; }
.corner-bl::after  { bottom: 0; top: auto; left: 0; }
.corner-br { bottom: -1px; right: -1px; }
.corner-br::before { bottom: 0; top: auto; right: 0; left: auto; }
.corner-br::after  { bottom: 0; top: auto; right: 0; left: auto; }

/* ── Card text ── */
.card-title {
  font-size: 16px; font-weight: 600; color: #fff;
  margin-bottom: 5px; letter-spacing: -0.01em;
}
.card-sub {
  font-size: 11.5px; color: rgba(255,255,255,0.2);
  margin-bottom: 28px; line-height: 1.5;
}

/* ── Fields ── */
.field { margin-bottom: 16px; }

label {
  display: flex; align-items: center; gap: 8px;
  font-size: 8.5px; font-weight: 600;
  color: rgba(255,255,255,0.26);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 8px;
}
.label-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(0,229,255,0.1), transparent);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  color: #e8f4ff;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.025);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.05);
}
input::placeholder { color: rgba(255,255,255,0.1); }

/* ── Errors ── */
.errorlist { list-style: none; margin: 0 0 14px; padding: 0; }
.errorlist li {
  font-size: 11px; color: #ff7070;
  padding: 3px 0;
}

/* ── Launch button ── */
.btn-launch {
  width: 100%; padding: 12px;
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 6px;
  color: rgba(0, 229, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.18s;
}
.btn-launch::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.btn-launch:hover {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.1);
  color: #00e5ff;
}
.btn-launch:hover::before { opacity: 1; }
.btn-launch:active { transform: scale(0.993); }
.btn-launch:disabled { opacity: 0.2; cursor: not-allowed; transform: none; }

/* ── Launch overlay ── */
#launch-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
}
#launch-overlay.active { opacity: 1; pointer-events: all; }

.launch-label {
  font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(0, 229, 255, 0.55);
  animation: blink-label 1s ease-in-out infinite;
}
@keyframes blink-label {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}

.launch-ring {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(0, 229, 255, 0.7);
  border-right-color: rgba(0, 229, 255, 0.12);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Flash ── */
#flash {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(circle at center, rgba(180,240,255,0.96) 0%, rgba(255,255,255,0.92) 100%);
  opacity: 0; pointer-events: none; transition: opacity 0.42s ease-in;
}
#flash.active { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 440px) {
  .card { width: 100%; padding: 28px 22px 26px; }
  .brand { margin-bottom: 28px; }
}
