:root {
  --onyx: #050505;
  --onyx-light: #121212;
  --onyx-card: rgba(22, 22, 22, 0.6);
  --onyx-border: rgba(255, 255, 255, 0.08);
  --volt: #E2FF00;
  --volt-dark: #B8CC00;
  --text: #FFFFFF;
  --text-muted: #737373;
  --text-dim: #525252;
  --danger: #EF4444;
  --success: #10B981;
}

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

html, body {
  background-color: var(--onyx);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(226, 255, 0, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(226, 255, 0, 0.02) 0%, transparent 40%);
}

.container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.logo-text {
  font-family: 'Lexend', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--volt);
}

.card {
  background-color: var(--onyx-card);
  border: 1px solid var(--onyx-border);
  border-radius: 20px;
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.title {
  font-family: 'Lexend', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.email-line {
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 24px;
  word-break: break-all;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  background-color: rgba(23, 23, 23, 0.85);
  border: 1px solid var(--onyx-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(226, 255, 0, 0.12);
}

.form-field {
  margin-bottom: 16px;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: var(--volt);
  color: #000;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  cursor: pointer;
  transition: transform 80ms ease, opacity 160ms ease;
  box-shadow: 0 0 24px rgba(226, 255, 0, 0.18);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--volt);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: #1a1a1a;
  color: var(--text-dim);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  display: block;
  text-align: center;
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--onyx-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
  transition: border-color 160ms ease, color 160ms ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: rgba(226, 255, 0, 0.12);
  border: 1px solid rgba(226, 255, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 1.6s ease-out infinite;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--volt);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(226, 255, 0, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(226, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 255, 0, 0); }
}

.error-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon svg {
  width: 36px;
  height: 36px;
  color: var(--danger);
}

.centered {
  text-align: center;
}

.loader {
  width: 36px;
  height: 36px;
  margin: 40px auto;
  border: 3px solid var(--onyx-border);
  border-top-color: var(--volt);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 32px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--volt);
}

.pw-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
