/* Little Cyberworld – Mailbox/C64 Auth Theme */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --cw-bg-1: #1a1226;
  --cw-bg-2: #0a0610;
  --cw-bg-3: #030106;
  --cw-blue: #0000AA;
  --cw-frame: #AAAAAA;
  --cw-cyan: #55FFFF;
  --cw-green: #55FF55;
  --cw-yellow: #FFFF55;
  --cw-magenta: #FF55FF;
  --cw-red: #FF5555;
  --cw-purple: #AA88CC;
  --cw-muted: #AAAAAA;
  --cw-white: #FFFFFF;
}

body.cw-theme {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(140% 120% at 50% 30%, var(--cw-bg-1) 0%, var(--cw-bg-2) 55%, var(--cw-bg-3) 100%);
  font-family: 'VT323', monospace;
  color: var(--cw-white);
}

@keyframes cw-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cw-flicker { 0%, 94%, 100% { opacity: 1; } 95% { opacity: .7; } 96% { opacity: .95; } 97% { opacity: .8; } 98% { opacity: .92; } }

.cw-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0px, rgba(0,0,0,.22) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 3px);
  box-shadow: inset 0 0 220px rgba(0,0,0,.8);
  mix-blend-mode: multiply;
  animation: cw-flicker 7s infinite;
}

::selection { background: var(--cw-cyan); color: #000; }

.cw-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  box-sizing: border-box;
}

.cw-eyebrow {
  text-align: center;
  color: var(--cw-green);
  font-family: 'Press Start 2P', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(85,255,85,.6);
  margin: 0 0 12px;
}

.cw-subtitle {
  text-align: center;
  color: var(--cw-purple);
  font-size: 20px;
  margin: 0 0 34px;
}

.cw-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--cw-blue);
  border: 3px solid var(--cw-frame);
  box-shadow: inset 0 0 0 3px var(--cw-blue), inset 0 0 0 5px var(--cw-frame);
  padding: 22px 24px;
  filter: drop-shadow(0 0 16px rgba(85,255,255,.22)) drop-shadow(0 6px 14px rgba(0,0,0,.55));
  box-sizing: border-box;
}

.cw-card-tag {
  position: absolute;
  top: -7px;
  left: 20px;
  background: var(--cw-blue);
  padding: 0 8px;
  color: var(--cw-yellow);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 14px;
}

.cw-card-tag-bottom {
  position: absolute;
  bottom: -7px;
  left: 20px;
  background: var(--cw-blue);
  padding: 0 8px;
  font-size: 16px;
  line-height: 14px;
}

.cw-section-title {
  text-align: center;
  color: var(--cw-yellow);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  margin: 0 0 6px;
}

.cw-lead {
  text-align: center;
  color: var(--cw-cyan);
  font-size: 19px;
  margin: 0 0 16px;
}

.cw-text {
  color: var(--cw-white);
  font-size: 18px;
  line-height: 1.35;
}

.cw-btn-google {
  width: 100%;
  background: #000;
  border: 2px solid var(--cw-muted);
  color: var(--cw-muted);
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 9px;
  cursor: not-allowed;
  letter-spacing: 1px;
  box-sizing: border-box;
}

.cw-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cw-muted);
  font-size: 18px;
  margin: 14px 0;
}
.cw-divider span.cw-divider-line {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.cw-field { margin-bottom: 14px; }

.cw-field-label {
  color: var(--cw-cyan);
  font-size: 17px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.cw-field-toggle {
  color: var(--cw-yellow);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'VT323', monospace;
  font-size: 17px;
  padding: 0;
}

.cw-input-box {
  background: #000;
  border: 2px solid var(--cw-cyan);
  padding: 2px 10px;
}

.cw-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cw-green);
  font-family: 'VT323', monospace;
  font-size: 21px;
  padding: 5px 0;
  letter-spacing: 1px;
  box-sizing: border-box;
}
.cw-input::placeholder { color: #555555; }

.cw-input-box-red {
  background: #000;
  border: 2px solid var(--cw-red);
  padding: 2px 10px;
}
.cw-input-red {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cw-red);
  font-family: 'VT323', monospace;
  font-size: 23px;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 6px 0;
  box-sizing: border-box;
}
.cw-input-red::placeholder { color: rgba(255,85,85,.4); letter-spacing: 3px; }

.cw-row-right { text-align: right; margin-bottom: 16px; }
.cw-row-center { text-align: center; }

.cw-link-magenta { color: var(--cw-magenta); font-size: 18px; }
.cw-link-green { color: var(--cw-green); }
.cw-link-muted { color: var(--cw-muted); font-size: 19px; }

.cw-btn-primary {
  width: 100%;
  background: var(--cw-yellow);
  color: var(--cw-blue);
  border: none;
  box-shadow: 4px 4px 0 #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  padding: 15px;
  cursor: pointer;
  letter-spacing: 1px;
}
.cw-btn-primary:hover { background: var(--cw-white); }

.cw-footer-line {
  text-align: center;
  color: var(--cw-muted);
  font-size: 19px;
  margin: 16px 0 2px;
}

.cw-error {
  text-align: center;
  color: var(--cw-red);
  font-size: 18px;
  margin: 0 0 14px;
}

.cw-status-msg {
  font-size: 18px;
  margin-top: 6px;
}

.cw-warning-box {
  border: 2px solid var(--cw-cyan);
  background: #000;
  padding: 12px 14px;
  margin: 8px 0 16px;
  color: var(--cw-white);
  font-size: 18px;
  text-align: center;
  line-height: 1.3;
}

.cw-palette {
  display: flex;
  height: 11px;
  margin: 2px 0 16px;
  border: 1px solid #000;
}
.cw-palette div { flex: 1; }

.cw-ascii {
  margin: 0;
  font-family: 'VT323', monospace;
  line-height: 1;
  text-align: center;
}

.cw-punch-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin: 6px 0 14px;
}
.cw-punch {
  width: 46px;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 5px;
  gap: 3px;
  background: #000;
}
.cw-punch div { border-radius: 50%; }

.cw-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(85,255,85,.08);
  border: 2px solid var(--cw-green);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--cw-green);
}
