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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-wrap { width: 100%; max-width: 400px; }

.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.login-brand__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.login-brand__name { font-size: 20px; font-weight: 800; color: #0f172a; }
.login-brand__sub  { font-size: 12px; color: #64748b; }

.login-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.login-sub   { font-size: 13px; color: #64748b; margin-bottom: 28px; }

.login-alert {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.login-alert.hidden { display: none; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

#toggle-pass {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  color: #9ca3af;
  padding: 2px;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
  margin-top: 8px;
}
.btn-login:hover   { background: #1d4ed8; }
.btn-login:disabled { opacity: .7; cursor: not-allowed; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
