/* Login PagoALToque — valores tomados verbatim de docs/design/login-pagoaltoque.dc.html */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #061029; }

.pat-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 44px 32px; position: relative;
  background: #061029; font-family: 'Manrope', sans-serif;
}
.pat-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 460px at 50% 36%, rgba(0,47,167,0.22), transparent 70%),
    radial-gradient(520px 400px at 82% 88%, rgba(59,191,226,0.10), transparent 70%);
}
.pat-stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }

.pat-card {
  position: relative; width: 424px; max-width: 100%;
  background: #FFFFFF; border-radius: 20px; padding: 30px 36px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: pat-fadeUp 0.45s ease both;
}
.pat-logo { height: 60px; width: auto; display: block; margin: 2px auto 0; }

.pat-h1 { margin: 16px 0 8px; text-align: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 25px; letter-spacing: -0.3px; color: #212121; }
.pat-h1--sm { font-size: 24px; }
.pat-sub { margin: 0 0 22px; text-align: center; font-size: 14px; color: #616161; line-height: 1.6; }
.pat-sub--tight { margin-bottom: 14px; font-size: 13.5px; }
.pat-badge { display: inline-block; padding: 2px 9px; border-radius: 7px; background: rgba(0,47,167,0.08); color: #002FA7; font-weight: 800; font-size: 12.5px; letter-spacing: 0.2px; }

.pat-field { position: relative; margin-bottom: 16px; }
.pat-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: #424242; }
.pat-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.pat-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid #DDDDDD; font-family: 'Manrope', sans-serif; font-size: 15px;
  color: #212121; background: #FFFFFF; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pat-input::placeholder { color: #B2B2B2; opacity: 1; }
.pat-input:focus { border-color: #002FA7; box-shadow: 0 0 0 4px rgba(0,47,167,0.15); }
.pat-input.pat-invalid { border-color: #EB2F06; }
.pat-input--pw { padding-right: 48px; }

.pat-input--code {
  height: 56px; text-align: center; padding: 0 0 0 16px; letter-spacing: 16px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px;
}

.pat-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 9px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.15s ease;
}
.pat-eye:hover { background: #F2F0F9; }
.pat-eye:focus-visible { box-shadow: 0 0 0 3px rgba(0,47,167,0.25); }
.pat-pw-wrap { position: relative; }

.pat-err { margin: 6px 2px 0; font-size: 12.5px; font-weight: 700; color: #EB2F06; }
.pat-warn { margin: 7px 2px 0; font-size: 12.5px; font-weight: 700; color: #E65100; }

.pat-link { font-size: 12.5px; font-weight: 800; text-decoration: none; color: #002FA7; }
.pat-link:hover { color: #0D61E7; }

.pat-checklist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 11px 14px; background: #F5F5F5; border: 1px solid #EEEEEE; border-radius: 12px; }
.pat-check { display: flex; align-items: center; gap: 9px; }
.pat-check-dot { width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s ease; background: transparent; border: 1.5px solid #B2B2B2; }
.pat-check-dot svg { opacity: 0; transition: opacity 0.15s ease; }
.pat-check-label { font-size: 12.5px; font-weight: 600; transition: color 0.15s ease; color: #757575; }
.pat-check.pat-ok .pat-check-dot { background: #38A888; border-color: #38A888; }
.pat-check.pat-ok .pat-check-dot svg { opacity: 1; }
.pat-check.pat-ok .pat-check-label { color: #2E7D32; }

.pat-btn {
  width: 100%; height: 50px; border: none; border-radius: 12px; background: #002FA7;
  color: #FFFFFF; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15.5px;
  letter-spacing: 0.1px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px; margin-top: 20px;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 12px 26px rgba(0,47,167,0.35);
}
.pat-btn:hover { background: #0D61E7; }
.pat-btn:active { transform: translateY(1px); }
.pat-btn:focus-visible { box-shadow: 0 0 0 4px rgba(0,47,167,0.35); }
.pat-btn[disabled] { cursor: default; opacity: 0.9; }
.pat-btn--mt18 { margin-top: 18px; }

.pat-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #FFFFFF; animation: pat-spin 0.7s linear infinite; display: inline-block; }

.pat-foot { margin-top: 16px; padding-top: 15px; border-top: 1px solid #EEEEEE; text-align: center; }
.pat-foot-text { margin: 0; text-align: center; font-size: 13.5px; font-weight: 600; color: #616161; }
.pat-foot-link { font-weight: 800; text-decoration: none; color: #002FA7; }
.pat-terms { margin: 15px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: #757575; }
.pat-terms a { font-weight: 700; }

.pat-banner { margin: 14px 0 -4px; padding: 10px 14px; border-radius: 12px; background: rgba(184,233,148,0.30); border: 1px solid #B8E994; color: #2E7D32; font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.5; }
.pat-tempnote { margin: 0 0 18px; padding: 11px 14px; border-radius: 12px; background: rgba(250,152,58,0.12); border: 1px solid rgba(250,152,58,0.45); font-size: 12.5px; font-weight: 600; line-height: 1.55; color: #E65100; }
.pat-hint { margin: 14px 0 0; text-align: center; font-size: 12.5px; font-weight: 600; color: #757575; }
.pat-hint--muted { color: #9E9E9E; font-size: 12px; }
.pat-resend-ok { color: #2E7D32; font-weight: 800; }

.pat-done { position: absolute; inset: 0; z-index: 6; background: #FFFFFF; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; animation: pat-fadeUp 0.3s ease both; }
.pat-done-ring { width: 58px; height: 58px; border-radius: 50%; background: rgba(184,233,148,0.30); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.pat-done-dot { width: 40px; height: 40px; border-radius: 50%; background: #38A888; display: flex; align-items: center; justify-content: center; }
.pat-done-title { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; color: #212121; }
.pat-done-msg { margin: 0; font-size: 13.5px; color: #616161; }
.pat-done-bar { width: 175px; height: 4px; border-radius: 99px; background: #DDDDDD; overflow: hidden; margin-top: 12px; }
.pat-done-bar > span { display: block; width: 70px; height: 100%; border-radius: 99px; background: #002FA7; animation: pat-slideBar 1.1s ease-in-out infinite; }

.pat-hidden { display: none !important; }

@keyframes pat-spin { to { transform: rotate(360deg); } }
@keyframes pat-fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pat-slideBar { from { transform: translateX(-70px); } to { transform: translateX(175px); } }
