/* shared auth-screen palette — dark, thin-line, Courier */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #d7e3f4;
  font-family: 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vmin, 48px);
  background:
    radial-gradient(ellipse at center, rgba(30, 50, 80, 0.18) 0%, rgba(0, 0, 0, 1) 70%),
    linear-gradient(180deg, #050608 0%, #000 100%);
}

.auth-frame {
  position: fixed;
  inset: clamp(14px, 2.5vmin, 28px);
  border: 1px solid rgba(137, 168, 214, 0.22);
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
}

.auth-card {
  position: relative;
  width: min(480px, 92vw);
  padding: clamp(28px, 5vmin, 48px);
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.82), rgba(4, 8, 14, 0.92));
  border: 1px solid rgba(170, 205, 245, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(210, 225, 255, 0.04),
    0 0 60px rgba(60, 100, 180, 0.12);
  animation: cardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.auth-label {
  font-size: clamp(10px, 1.4vmin, 13px);
  letter-spacing: 0.52em;
  color: rgba(200, 220, 250, 0.72);
  text-align: center;
  margin-bottom: clamp(16px, 2.4vmin, 24px);
}

.auth-title {
  font-size: clamp(18px, 2.6vmin, 26px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(235, 244, 255, 0.96);
  text-align: center;
  text-shadow: 0 0 18px rgba(170, 210, 255, 0.28);
  margin-bottom: clamp(28px, 4.5vmin, 42px);
}

.auth-field {
  display: block;
  width: 100%;
  margin-bottom: clamp(16px, 2.4vmin, 24px);
}

.auth-field input {
  display: block;
  width: 100%;
  padding: clamp(14px, 2vmin, 18px) clamp(16px, 2.4vmin, 22px);
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid rgba(170, 205, 245, 0.25);
  color: rgba(235, 244, 255, 0.96);
  font-family: 'Courier New', monospace;
  font-size: clamp(15px, 2vmin, 18px);
  letter-spacing: 0.12em;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-field input:focus {
  border-color: rgba(170, 210, 255, 0.6);
  background: rgba(10, 18, 30, 0.9);
  box-shadow: 0 0 24px rgba(90, 140, 220, 0.18);
}

.auth-field input::placeholder {
  color: rgba(170, 195, 230, 0.35);
  letter-spacing: 0.2em;
}

.auth-submit {
  display: block;
  width: 100%;
  padding: clamp(14px, 2vmin, 18px);
  margin-top: clamp(8px, 1.4vmin, 14px);
  background: linear-gradient(180deg, rgba(20, 32, 52, 0.8), rgba(6, 12, 22, 0.95));
  border: 1px solid rgba(170, 205, 245, 0.35);
  color: rgba(235, 244, 255, 0.96);
  font-family: 'Courier New', monospace;
  font-size: clamp(14px, 1.9vmin, 17px);
  font-weight: 700;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-submit:hover {
  background: linear-gradient(180deg, rgba(36, 56, 88, 0.9), rgba(12, 22, 38, 1));
  box-shadow: 0 0 40px rgba(170, 210, 255, 0.22);
}

.auth-submit:active { transform: scale(0.99); }
.auth-submit:disabled { opacity: 0.55; cursor: wait; }

.auth-error {
  margin-top: clamp(14px, 2vmin, 20px);
  padding: clamp(10px, 1.6vmin, 14px);
  font-size: clamp(12px, 1.6vmin, 14px);
  color: rgba(255, 140, 150, 0.95);
  border: 1px solid rgba(255, 100, 110, 0.32);
  background: rgba(60, 10, 18, 0.35);
  letter-spacing: 0.08em;
  text-align: center;
  display: none;
}

.auth-error.show { display: block; }

.auth-note {
  margin-top: clamp(18px, 2.6vmin, 26px);
  font-size: clamp(10px, 1.3vmin, 12px);
  color: rgba(160, 185, 220, 0.55);
  letter-spacing: 0.18em;
  text-align: center;
  line-height: 1.7;
}

.auth-note code {
  font-family: 'Courier New', monospace;
  color: rgba(200, 220, 250, 0.82);
}
