/* ── Login Page ── */

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

body {
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, var(--primary-dark) 0%, #234480 50%, var(--primary-dark) 100%);
}

/* ── Card ── */
.login-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ── Card header ── */
.login-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 3px solid var(--accent);
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  flex-shrink: 0;
}

.login-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.login-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}

/* ── Form ── */
.login-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-error {
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-group input {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--gray-900);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,84,153,.15);
}

.login-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: 4px;
}

.login-btn:hover   { background: var(--accent-light); }
.login-btn:active  { transform: scale(.98); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Footer ── */
.login-footer {
  color: rgba(255,255,255,.45);
  font-size: 0.75rem;
}
