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

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #f0f1f3;
  --line: #e0e1e6;
  --text: #1a1d23;
  --muted: #6b7280;
  --accent: hsl(24, 94.0%, 50.0%);
  --accent-hover: hsl(25, 100%, 29.0%);
  --danger: #e46969;
  --warn: #d4a530;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top right, hsl(24, 100%, 95%) 0, transparent 40%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 20px;
  font-weight: 700;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
      box-shadow: 0 0 20px rgba(245, 130, 32, 0.8);
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.field { margin-bottom: 16px; }

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.input-wrap { position: relative; }

input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(245, 130, 32, 0.1); }
input::placeholder { color: #a8afbe; }

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
}

.alert {
  display: none;
  border-radius: 10px;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.alert.show { display: block; }

.alert.error {
  border: 1px solid rgba(228, 105, 105, 0.3);
  background: rgba(228, 105, 105, 0.08);
  color: #c1353f;
}

.submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, opacity 0.2s;
}

.submit:hover:not(:disabled) { background: var(--accent-hover); }
.submit:disabled { opacity: 0.7; cursor: not-allowed; }

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

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