/* Admin sign-in and verification share the central GawangPinas sign-in layout. */
body.login-body {
  display: block;
  min-height: 100svh;
  padding: 32px 24px;
  background: #f8fafc;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
}
.login-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: min(100%, 1100px);
  max-width: none;
  min-height: calc(100svh - 64px);
  margin: 0 auto;
}
.login-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  min-width: 0;
  min-height: 560px;
  padding: 40px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}
.login-story-brand, .login-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.login-story-brand { align-self: flex-start; min-height: 44px; }
.login-story-brand:hover { color: #0f172a; text-decoration: none; }
.login-story-brand img, .login-mobile-brand img { display: block; width: 36px; height: 36px; }
.login-story-copy h2 { max-width: 420px; color: #0f172a; font-size: 32px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.login-story-copy p { max-width: 410px; margin-top: 16px; color: #475569; font-size: 16px; line-height: 1.6; }
.login-panel { min-width: 0; }
.login-card {
  width: 100%;
  padding: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  text-align: left;
}
.login-mobile-brand { display: none; }
.login-title { margin-bottom: 8px; color: #0f172a; font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.login-subtitle { margin-bottom: 24px; color: #475569; font-size: 14px; line-height: 1.5; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-group label { margin-bottom: 6px; color: #0f172a; font-size: 14px; font-weight: 600; }
.login-card .form-group input,
.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
  height: 48px;
  min-height: 48px;
  border-color: #94a3b8;
  border-radius: 6px;
  color: #0f172a;
  font-size: 16px;
}
.login-card .form-group input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.login-card .input-password-wrap input { padding-right: 48px !important; }
.login-card .input-password-toggle { right: 4px; width: 40px; height: 40px; }
.login-card button[type="submit"] {
  height: 48px;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 8px;
  background: #2563eb;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}
.login-card button[type="submit"]:hover { background: #1d4ed8; border-color: #1d4ed8; box-shadow: none; }
.login-security-note { margin-top: 20px; color: #64748b; font-size: 12px; line-height: 1.5; }
.login-footer { margin-top: 20px; color: #64748b; font-size: 12px; text-align: center; }
.login-2fa-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; background: #eff6ff; color: #1d4ed8; }
.login-2fa-icon .material-icons-round { font-size: 26px; }
.login-2fa-subtitle strong { color: #0f172a; }
.login-2fa-account { display: block; margin-top: 2px; color: #64748b; font-size: 12px; overflow-wrap: anywhere; }
.login-card .code-input { margin: 0; letter-spacing: .2em !important; }
.login-recovery { margin-top: 16px; color: #64748b; font-size: 13px; }
.login-text-button { padding: 0; border: 0; background: transparent; color: #1d4ed8; font: inherit; font-weight: 600; cursor: pointer; }
.login-text-button:hover { text-decoration: underline; }
.login-back { display: inline-block; margin-top: 12px; color: #1d4ed8; font-size: 13px; font-weight: 600; }
.auth-skip-link { position: absolute; top: -60px; left: 16px; z-index: 20; padding: 10px 14px; background: #fff; color: #1d4ed8; }
.auth-skip-link:focus { top: 12px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .login-container { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; }
  .login-story { min-height: 520px; gap: 32px; padding: 28px; }
  .login-story-copy h2 { font-size: 28px; }
  .login-story-copy p { font-size: 14px; }
  .login-card { padding: 24px; }
}
@media (max-width: 767px) {
  body.login-body { padding: 24px 16px; }
  .login-container { display: block; max-width: 480px; min-height: calc(100svh - 48px); }
  .login-story { display: none; }
  .login-mobile-brand { display: inline-flex; margin-bottom: 24px; font-size: 19px; }
}
@media (max-width: 480px) {
  body.login-body { padding: 16px 12px; }
  .login-container { min-height: calc(100svh - 32px); }
  .login-card { padding: 24px 20px; }
  .login-title { font-size: 26px; }
}
