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

html, body {
  min-height: 100vh;
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(239, 68, 68, 0.25), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(127, 29, 29, 0.35), transparent 55%),
    linear-gradient(135deg, #1a0606 0%, #2d0d0d 50%, #3a1010 100%);
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #1a0606 0%, #3a1010 100%);
  padding: 40px 32px 32px;
  text-align: center;
  color: #fff;
}

.login-brand {
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.login-subbrand {
  margin-top: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.login-tagline {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.login-body {
  padding: 36px 32px 32px;
}

.login-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  color: #1e293b;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.login-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.login-field input:focus {
  outline: none;
  border-color: #7f1d1d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(127, 29, 29, 0.08);
}

.login-button {
  margin-top: 10px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a0606 0%, #3a1010 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
}

.login-button:hover:not(:disabled) {
  box-shadow: 0 14px 30px rgba(26, 6, 6, 0.45);
  transform: translateY(-1px);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.login-footer {
  margin-top: 22px;
  font-size: 0.76rem;
  color: #94a3b8;
  text-align: center;
  letter-spacing: 0.04em;
}

.login-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  color: #7f1d1d;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.login-link:hover {
  background: rgba(127, 29, 29, 0.06);
  color: #991b1b;
}

.login-desc {
  font-size: 0.86rem;
  color: #475569;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.5;
}

.login-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  font-weight: 600;
}

.code-input {
  text-align: center;
  font-size: 1.4rem !important;
  font-weight: 800;
  letter-spacing: 6px;
}

@media (max-width: 480px) {
  .login-shell { padding: 16px; }
  .login-header { padding: 32px 24px 26px; }
  .login-brand { font-size: 2rem; }
  .login-body { padding: 28px 20px; }
  .login-field input { font-size: 16px; min-height: 44px; } /* previne zoom iOS */
  .login-button { min-height: 48px; font-size: 1rem; }
  .code-input { font-size: 1.2rem !important; }
}
