.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

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

.brand { text-align: center; margin-bottom: 24px; }
.brand-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
}
.brand-logo svg { width: 44px; height: 44px; }
.brand h1 { font-size: 1.5rem; color: var(--primary-dark); }
.brand p { color: var(--muted); font-size: 0.95rem; }

.login-card { padding: 24px 20px; }
.login-card h2 { font-size: 1.15rem; margin-bottom: 16px; }

.password-box { position: relative; }
.password-box input { padding-inline-end: 48px; }
.toggle-pass {
  position: absolute;
  inset-inline-end: 4px;
  top: 0;
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.toggle-pass svg { width: 22px; height: 22px; }

/* Email and password stay left-to-right while typing */
input[dir="ltr"] { text-align: right; }
input[dir="ltr"]::placeholder { text-align: right; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Remember me */
.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
}
.remember input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}
