:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-color: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --glass: rgba(255, 255, 255, 0.95);
  --radius: 16px;
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  background-color: var(--bg-color);
  background: linear-gradient(135deg, #a2add4 0%, #f8fafc 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bg-blur {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  top: -100px;
  right: -100px;
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.form-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;

  text-shadow:
    0 0 8px rgba(79, 70, 229, 0.3),
    0 0 16px rgba(79, 70, 229, 0.25);
}

.header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  background: transparent;
  transition: all 0.2s ease;
  outline: none;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  background: white;
  padding: 0 4px;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
  top: 0;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.primary-btn {
  font-family: "Instrument Serif", sans-serif;
  letter-spacing: 0.06em;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.footer-text {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toggle-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.toggle-link:hover {
  text-decoration: underline;
}

/* Alerts */
.alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
  text-align: center;
}

.alert.success {
  text-shadow:
    0 1px 2px rgba(22, 163, 74, 0.35),
    0 0 6px rgba(34, 197, 94, 0.35);
  color: #16a34a;
}

.alert.error {
  text-shadow:
    0 1px 2px rgba(220, 38, 38, 0.4),
    0 0 6px rgba(248, 113, 113, 0.35);
  color: #dc2626;
}