/* ============ VARIABLES GLOBALES ============ */
:root {
  --gold:      #f5a623;
  --gold-hi:   #ffc85e;
  --gold-deep: #8a5a00;
  --glow:      rgba(255, 170, 30, .85);
  --bg:        #060606;
  --panel-1:   #161616;
  --panel-2:   #0b0b0b;
  --fg:        #f2f2f2;
  --muted:     #9a8f7a;
  --danger:    #ff4d4d;
  --ok:        #b8ff3d;
  
}

/* ============ VISTAS Y CENTRADO GLOBAL ============ */
.view-resend-activation,
.view-reset-password,
.view-restore,
.view-restore-pass,
.view-verify-2fa {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  box-sizing: border-box;
}

/* ============ CONTENEDOR PRINCIPAL Y CARD ============ */
.login-wrapper { 
  position: relative; 
  z-index: 2; 
  width: 100%;
  max-width: 420px; 
  margin: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.view-register .login-wrapper {
  max-width: 580px;
}

.frame, .login-card {
  position: relative;
  width: 100%;
  border: 1px solid var(--gold-deep);
  border-radius: 14px;
  background:
    radial-gradient(140% 120% at 20% 0%, rgba(255,255,255,.045), transparent 45%),
    radial-gradient(90% 90% at 85% 100%, rgba(255,170,30,.05), transparent 55%),
    linear-gradient(160deg, var(--panel-1), var(--panel-2) 70%);
  box-shadow:
    0 0 14px rgba(255,170,30,.35),
    0 0 50px rgba(255,140,0,.18),
    0 30px 80px rgba(0,0,0,.8),
    inset 0 0 22px rgba(0,0,0,.85);
  padding: 36px 28px 24px;
  animation: cardIn .8s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.frame::before, .login-card::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow:
    0 0 5px var(--glow),
    0 0 22px rgba(255,150,0,.35),
    inset 0 0 10px rgba(255,170,30,.55);
  pointer-events: none;
}

.frame::after, .login-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,200,90,.10), transparent 18%);
  pointer-events: none;
}

.frame .texture, .login-card .texture, .texture {
  position: absolute; inset: 7px; border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(220px 130px at 18% 22%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(300px 200px at 78% 68%, rgba(255,255,255,.035), transparent 60%),
    radial-gradient(180px 260px at 55% 90%, rgba(0,0,0,.5), transparent 65%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.014) 0 2px, transparent 2px 7px);
  mix-blend-mode: screen; opacity: .8; pointer-events: none;
}

/* ============ EMBLEMA Y TIPOGRAFÍA ============ */
.emblem {
  width: 78px; 
  height: 62px; 
  margin: 0 auto 14px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(255,170,30,.4));
  animation: emblemPulse 4s ease-in-out infinite;
}

@keyframes emblemPulse {
  50% { filter: drop-shadow(0 4px 18px rgba(255,170,30,.8)); }
}

.login-title {
  text-align: center; position: relative; z-index: 1;
  font-size: 26px; font-weight: 700; letter-spacing: .04em;
  color: var(--gold-hi);
  text-shadow: 0 0 14px rgba(255,170,30,.4);
  margin-bottom: 6px;
}

.login-subtitle, .subtitle {
  text-align: center; position: relative; z-index: 1;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
  line-height: 1.4;
}

.email-highlight {
  color: var(--fg);
  font-weight: 600;
}

/* ============ FORMULARIOS E INPUTS ============ */
.login-form { position: relative; z-index: 1; margin: 10px 0; }
.input-group, .form-group { position: relative; margin-bottom: 16px; }

.form-group.full-width { grid-column: 1 / -1; }

.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--gold); z-index: 2;
}

.login-input, .form-control {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(0, 0, 0, .55);
  border: 1.5px solid rgba(255, 170, 30, .25);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .04em;
  outline: none;
  transition: all .25s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.form-control { padding-left: 14px; font-size: 14px; }

.login-input::placeholder { color: #6a6053; }

.login-input:focus, .form-control:focus, .code-input:focus, .input-code:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 170, 30, .15), 0 0 18px rgba(255, 170, 30, .25);
  background: rgba(0, 0, 0, .7);
}

select.form-control option {
  background-color: var(--panel-1);
  color: var(--fg);
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--gold-hi) !important;
  caret-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,.7) inset !important;
  box-shadow: 0 0 0 1000px rgba(0,0,0,.7) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.toggle-pass {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 6px;
  display: grid; place-items: center;
  transition: color .2s ease;
}
.toggle-pass:hover { color: var(--gold); }
.toggle-pass svg { width: 16px; height: 16px; }

.form-text {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Inputs de Código (2FA y Restablecimiento) */
.code-input, .input-code {
  width: 100%;
  letter-spacing: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 170, 30, 0.25);
  border-radius: 8px;
  color: var(--fg);
  outline: none;
  margin-bottom: 20px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* ============ GRID DE FORMULARIOS ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
}

.date-selector-group {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 30, 0.15);
  margin-bottom: 16px;
}

.date-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* ============ BOTONES ============ */
.login-button {
  width: 100%;
  margin-top: 6px;
  display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: var(--primary);
    will-change: transform;
    background: var(--reflection-glass-sheen), rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px var(--color-primary), 0 0 0 1px rgba(239, 165, 5, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-button::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 28px rgba(255,170,30,.7);
}

.login-button:hover::before { transform: translateX(100%); }

.login-button.loading { pointer-events: none; opacity: .8; }
.login-button.loading .btn-text { visibility: hidden; }
.login-button.loading::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pwd-gen {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  background: rgba(255, 170, 30, 0.08);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  color: var(--gold-hi);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pwd-gen:hover { background: rgba(255, 170, 30, 0.18); }

.btn-link {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ============ CHECKBOXES Y TERMINOS ============ */
.terms-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 30, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label {
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
}

.checkbox-label a, .help-link, .link a {
  color: var(--gold-hi);
  text-decoration: underline;
}

/* ============ COMPONENTES INFORMATIVOS Y PASOS ============ */
.info-box, .warning-box, .security-note-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 13px;
  color: var(--fg);
}

.warning-box, .security-note-card {
  border-left-color: var(--gold);
  background: rgba(255, 170, 30, 0.05);
  color: var(--gold-hi);
}

.security-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.steps-container { margin: 24px 0; }
.steps-container h4, .recovery-info h4, .help-section h4 {
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title { font-size: 13px; font-weight: 600; color: var(--fg); }
.step-description { font-size: 12px; color: var(--muted); }

.attempts-indicator { margin-bottom: 20px; }
.attempts-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.attempts-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--danger), var(--gold));
  transition: width 0.3s ease;
}

.recovery-progress {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  position: relative;
}

.recovery-progress::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.recovery-step {
  position: relative;
  z-index: 2;
  background: var(--panel-1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recovery-step.active {
  color: #fff;
  border-color: var(--gold);
  background: rgba(255, 170, 30, 0.1);
}

.recovery-info {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.recovery-info ul { list-style: none; padding: 0; margin: 0; }
.recovery-info li {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.recovery-info li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============ FOOTER & MUESTRA DE MENSAJES ============ */
.login-footer {
  position: relative; z-index: 1;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,170,30,.18);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}

.login-footer.split {
  flex-direction: row;
  justify-content: space-between;
}

.footer-link {
  color: var(--muted); text-decoration: none;
  font-size: 12px; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .25s ease;
}

.footer-link svg { width: 13px; height: 13px; }
.footer-link:hover { color: var(--gold-hi); }
.footer-link.danger:hover { color: var(--danger); }

.login-footer .divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.form-msg {
  position: relative; z-index: 1; margin-bottom: 14px;
  padding: 10px 14px; border-radius: 6px; font-size: 12px; display: none;
}
.form-msg.show { display: block; animation: cardIn .35s ease both; }
.form-msg.error { background: rgba(255,77,77,.12); border: 1px solid rgba(255,77,77,.4); color: #ffb3b3; }
.form-msg.ok { background: rgba(184,255,61,.10); border: 1px solid rgba(184,255,61,.4); color: var(--ok); }

.credits {
  margin-top: 14px; position: relative; z-index: 5;
  font-size: 10px; letter-spacing: .3em; color: #4a4438; text-align: center;
}

/* ============ RESPONSIVE MÓVIL ============ */
@media (max-width: 600px) {
  .login-wrapper {
    max-width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center;
  }
  .frame {
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 18px !important;
  }
  .frame::before {
    margin: 10px;
    border-radius: 20px;
    inset: 2px !important;
  }
}

li{

    list-style: none;

}