/* ============================================================================
   WebCon — login.css  (compartido por wconLogin / wconLoginRC / wconLoginCC)
   Paleta tomada del dashboard.asp:
     --azul:#2563eb  --azul-d:#1e3a8a  --azul-xd:#172554
     --tinta:#0f2540 --gris:#64748b --linea:#e8edf3 --fondo:#f1f5f9
============================================================================ */

*,*::before,*::after { box-sizing: border-box; }
html,body { height: 100%; margin: 0; padding: 0; }

body.wc-login {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 45%, #2563eb 100%);
  color: #0f2540;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wc-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.wc-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32), 0 4px 16px rgba(0,0,0,.12);
  padding: 36px 32px 32px;
  animation: wcLoginIn .35s cubic-bezier(.22,.61,.36,1);
}

@keyframes wcLoginIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wc-login-logo {
  text-align: center;
  margin-bottom: 22px;
}
.wc-login-logo img {
  max-height: 84px;
  max-width: 260px;
  height: auto;
  width: auto;
  display: inline-block;
}
.wc-login-tagline {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: .2px;
}

.wc-login-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f2540;
  text-align: center;
  margin: 0 0 4px;
  letter-spacing: -.2px;
}
.wc-login-sub {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 22px;
}

.wc-login-field { margin-bottom: 14px; }
.wc-login-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: normal;
  margin-bottom: 6px;
}
.wc-login-input {
  width: 100%;
  border: 1px solid #cdd9e8;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14.5px;
  color: #0f2540;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.wc-login-input::placeholder {
  color: #aeb6c2;       /* gris claro */
  font-weight: 400;     /* fina (no hereda la negrita del texto ingresado) */
  font-size: 12.5px;    /* mas pequena que el texto del input */
  opacity: 1;           /* Firefox aplica opacidad por defecto */
}
.wc-login-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.wc-login-input[readonly] {
  background: #f3f6fb;
  color: #475569;
  cursor: not-allowed;
}
.wc-login-input.is-error {
  border-color: #b91c1c;
  background: #fff8f8;
}
.wc-login-input.is-error:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185,28,28,.15);
}
.wc-login-fielderr {
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.4;
  display: none;
  padding-left: 2px;
}
.wc-login-fielderr.show { display: block; }

.wc-login-hint {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 5px;
  line-height: 1.35;
  padding-left: 2px;
}

/* --- MFA: 6 cajas individuales -------------------------------------------- */
.wc-mfa-group {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.wc-mfa-box {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 52px;
  height: 50px;
  border: 1px solid #cdd9e8;
  border-radius: 9px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #0f2540;
  background: #fff;
  font-family: inherit;
  padding: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
  caret-color: #2563eb;
}
.wc-mfa-box::placeholder { color: transparent; }
.wc-mfa-box:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.wc-mfa-box.is-error {
  border-color: #b91c1c;
  background: #fff8f8;
}
.wc-mfa-box.is-error:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185,28,28,.15);
}
@media (max-width: 380px){
  .wc-mfa-box { height: 44px; font-size: 18px; }
  .wc-mfa-group { gap: 6px; }
}

.wc-login-btn {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: transform .05s ease, box-shadow .15s ease, filter .15s ease;
  letter-spacing: .3px;
}
.wc-login-btn:hover { box-shadow: 0 8px 22px rgba(37,99,235,.42); filter: brightness(1.04); }
.wc-login-btn:active { transform: translateY(1px); }

.wc-login-foot {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e8edf3;
  font-size: 13px;
  color: #64748b;
}
.wc-login-foot a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.wc-login-foot a:hover { text-decoration: underline; }

.wc-login-msg {
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid;
  position: relative;
  line-height: 1.45;
}
.wc-login-msg::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 12px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 18px;
}
.wc-login-msg--ok {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}
.wc-login-msg--ok::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.wc-login-msg--err {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.wc-login-msg--err::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
}

.wc-login-copy {
  text-align: center;
  padding: 16px 16px 24px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.wc-login-copy a { color: rgba(255,255,255,.95); text-decoration: none; }
.wc-login-copy a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .wc-login-card { padding: 28px 22px 24px; border-radius: 14px; }
  .wc-login-title { font-size: 20px; }
  .wc-login-wrap { padding: 18px 12px; }
}
