:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --border: #e2e8f0;
  --text-muted: #64748b;
  --panel: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  height: 100vh;
  /* Clean light background */
  background: #f8fafc;
  color: #0f172a;
}

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1300px;
  margin: auto;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 900;
  font-size: 18px;
  color: #0f172a;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover {
  color: var(--blue);
}

/* CENTER */
.wrapper {
  height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* CARD */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  /* Professional soft shadow */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  animation: enter 0.6s ease;
}

.card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
}
.card p {
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 14px;
}

/* GOOGLE BUTTON */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  padding: 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
}
.google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.google-btn svg {
  width: 20px;
  height: 20px;
}

/* OR DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* INPUTS */
.field {
  margin-bottom: 16px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  color: #0f172a;
  font-size: 14px;
}
.field input::placeholder {
  color: #94a3b8;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.2s;
  width: auto;
  margin-top: 0;
}

.password-toggle:hover {
  color: var(--blue);
  transform: translateY(-50%);
  box-shadow: none;
  background: none;
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

/* CTA */
button.primary {
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  border-radius: 18px;
  border: none;
  background: var(--blue);
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
button.primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* FOOTER */
.footer {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

/* ANIMATION */
@keyframes enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.input-error {
  border: 1px solid #ef4444 !important;
  background: #fef2f2 !important;
}

.error-text {
  margin-top: 6px;
  font-size: 12px;
  color: #ef4444;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #f1f5f9;
  border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
        .nav-logo-text {
            font-family: 'Outfit', sans-serif;
            font-size: 20px;
            font-weight: 700;
            color: var(--ink);
            letter-spacing: -0.3px;
        }

        .nav-logo-text span {
            color: var(--blue);
        }
