/* Modales del header (login, registro, recuperación, términos). Extraído de views/admin/includes/header.php */
/* Estilos específicos para el modal de términos en el Registro */
.modal-overlay-terms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}
.modal-content-terms {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}
.modal-content-terms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ac1db, #363993);
}
.modal-header-terms {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1b1b1b;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #e9ecef;
    box-sizing: border-box;
}
.modal-title-terms {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #2ac1db, #363993);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-subtitle-terms {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    margin: 0;
    color: #6c757d;
}
.modal-close-btn-terms {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.modal-close-btn-terms:hover {
    background: #ffffff;
    border-color: #2ac1db;
    color: #2ac1db;
    transform: scale(1.05);
}
.modal-overlay-terms .modal-body-footer {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: calc(90vh - 200px);
    background: #ffffff;
}
.modal-footer-terms-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.modal-footer-text-terms {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}
.btn-accept-terms {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.btn-accept-terms:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

/* Modales legales del registro: términos y privacidad */
.modal-overlay-terms {
    background: rgba(10, 13, 16, 0.84);
    backdrop-filter: blur(5px);
    padding: 16px;
}
.modal-content-terms {
    max-width: 820px;
    max-height: min(90vh, 920px);
    border: 1px solid rgba(42, 193, 219, 0.42);
    border-radius: 3px;
    background: #f4f6f8;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.modal-content-terms::before {
    height: 3px;
    background: linear-gradient(90deg, #2ac1db, #363993);
}
.modal-header-terms {
    flex: 0 0 auto;
    align-items: center;
    padding: 20px 26px;
    border-bottom: 1px solid rgba(42, 193, 219, 0.28);
    background: #1b1b1b;
}
.modal-title-terms {
    margin: 0 0 5px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    font: 700 1.2rem/1.35 'Orbitron', sans-serif;
    letter-spacing: .04em;
}
.modal-subtitle-terms {
    color: #b9bec4;
    font: 400 .9rem/1.45 'Outfit', sans-serif;
}
.modal-close-btn-terms {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #454a50;
    border-radius: 2px;
    background: #25282c;
    color: #2ac1db;
}
.modal-close-btn-terms:hover {
    border-color: #2ac1db;
    background: rgba(42, 193, 219, .12);
    color: #2ac1db;
}
.modal-overlay-terms .modal-body-footer {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    background: #f4f6f8;
    scrollbar-color: #2ac1db #e2e6e9;
}
.modal-overlay-terms .terms-content {
    padding: 22px 26px;
    color: #4a5056;
    font: 400 .94rem/1.65 'Outfit', sans-serif;
}
.modal-overlay-terms .terms-section {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid #dce2e6;
}
.modal-overlay-terms .terms-title {
    gap: 12px;
    margin: 0 0 10px;
    color: #1b1b1b;
    font: 600 1rem/1.4 'Outfit', sans-serif;
    letter-spacing: 0;
}
.modal-overlay-terms .terms-number {
    width: 28px;
    height: 28px;
    border-radius: 2px;
    background: #2ac1db;
    color: #1b1b1b;
    font: 700 .78rem/1 'Orbitron', sans-serif;
}
.modal-overlay-terms .terms-text,
.modal-overlay-terms .terms-list li {
    color: #4a5056;
    font: 400 .94rem/1.65 'Outfit', sans-serif;
    text-align: left;
}
.modal-overlay-terms .terms-list li { padding-top: 7px; padding-bottom: 7px; }
.modal-overlay-terms .terms-list li:hover { color: #1b1b1b; }
.modal-footer-terms-btn {
    flex: 0 0 auto;
    gap: 16px;
    padding: 15px 26px;
    border-top: 1px solid #dce2e6;
    background: #fff;
}
.modal-footer-text-terms { color: #69727a; }
.modal-footer-text-terms i { color: #168da1; }
.btn-accept-terms {
    min-height: 42px;
    padding: 0 22px;
    border-radius: 0;
    background: #2ac1db;
    color: #1b1b1b;
    box-shadow: none;
    font: 700 .82rem 'Orbitron', sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.btn-accept-terms:hover {
    background: #1fb0cb;
    box-shadow: none;
}
@media (max-width: 600px) {
    .modal-overlay-terms { padding: 10px; }
    .modal-content-terms { max-height: 94dvh; }
    .modal-header-terms { padding: 16px 17px; }
    .modal-title-terms { font-size: 1rem; }
    .modal-subtitle-terms { font-size: .82rem; }
    .modal-overlay-terms .terms-content { padding: 17px 16px; }
    .modal-overlay-terms .terms-title { font-size: .94rem; }
    .modal-overlay-terms .terms-text,
    .modal-overlay-terms .terms-list li { font-size: .9rem; }
    .modal-footer-terms-btn { align-items: stretch; padding: 13px 16px; }
    .btn-accept-terms { min-height: 40px; padding: 0 14px; }
}

.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"] { width: 100%; box-sizing: border-box; }
input { box-sizing: border-box; }
.form-group { margin-bottom: 1rem; }
.form-group label { font-size: 0.85rem; color: #1B1B1B; display: block; margin-bottom: 0.3rem; }
.form-group input { width: 100%; padding: 0.6rem; border: 1px solid #ccc; border-radius: 6px; font-size: 0.9rem; outline: none; transition: border-color 0.2s;}
.form-group input:focus { border-color: #2AC1DB; }
input { box-sizing: border-box; }
.password-strength { height: 4px; border-radius: 2px; background: #ddd; margin-top: 0.3rem; width: 0; transition: width 0.3s ease, background 0.3s ease; }
.form-check { display: flex; align-items: center; font-size: 0.75rem; margin: 1rem 0;}
.form-check input { margin-right: 0.5rem; }
.form-check a { color: #2AC1DB; font-weight: 500; text-decoration: none; }
.form-check a:hover { text-decoration: underline; } 
button:disabled { background: #aaa; cursor: not-allowed; }
.login-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.login-modal.open { display: block !important; }
#loginModalPanel { opacity: 0; transform: scale(0.95) translateY(10px); transition: opacity 0.3s ease-out, transform 0.3s ease-out;}
.login-modal.open #loginModalPanel { opacity: 1; transform: scale(1) translateY(0); }
#loginModalPanel:has(#view-login.active-view) { border: 0; border-radius: 0; clip-path: polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,30px 100%,0 calc(100% - 30px)); font-family: 'Outfit', sans-serif; }
#loginModalPanel:has(#view-login.active-view) > .px-6 { padding: 0 32px 36px; }
#loginModalPanel:has(#view-login.active-view) #loginModalClose { top: 23px; right: 26px; width: 34px; height: 34px; padding: 10px; color: #2AC1DB; background: #2A2B30; border-radius: 0; clip-path: polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%); }
#view-login .login-brand { height: 80px; margin: 0 -32px 32px; background: #1B1B1B; display: flex; align-items: center; justify-content: center; }
#view-login .login-brand img { width: 180px; max-height: 45px; object-fit: contain; }
#view-login > div.text-center { margin: 0 0 18px; }
#loginModalDesc { margin: 0; font-size: 14px; color: #4B5563; }
#view-login .login-social { display: flex; flex-direction: column; gap: 12px; margin: 0; }
#view-login .login-social > a { position: relative; isolation: isolate; margin: 0; height: 48px; padding: 0 14px; border: 0; border-radius: 0; box-shadow: none; background: #D5D9E0; color: #1B1B1B; font-size: 15px; font-weight: 600; clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px)); }
#view-login .login-social > a::before { content: ''; position: absolute; inset: 1px; z-index: -1; background: #fff; clip-path: polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px)); }
#view-login .login-social > a:hover { background: #2AC1DB; }
#view-login .login-social > a[aria-disabled="true"] { opacity: .55; }
#view-login .login-divider { margin: 22px 0 20px; }
#view-login .login-divider span { font-size: 12px; color: #6B7280; }
#loginModalForm { display: flex; flex-direction: column; gap: 16px; }
#loginModalForm > * { margin: 0; }
#loginModalForm label { font-size: 13px; font-weight: 600; color: #1B1B1B; }
#loginModalForm label + div { margin-top: 8px; }
#loginModalForm input[type="email"], #loginModalForm input[type="password"], #loginModalForm input[type="text"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #D5D9E0; border-radius: 0; background: #fff; box-shadow: none; font: 15px 'Outfit', sans-serif; color: #1B1B1B; }
#loginModalForm input:focus { border-color: #2AC1DB; outline: 0; box-shadow: 0 0 0 3px rgba(42,193,219,.18); }
#loginModalForm .input-wrapper input { padding-right: 48px; }
#loginModalForm .btn-toggle-pass { right: 4px; width: 40px; height: 40px; color: #4B5563; }
#loginModalForm .login-options { margin-top: 2px; gap: 12px; }
#loginModalForm .login-options label { font-size: 14px; font-weight: 400; color: #374151; }
#loginModalForm .login-options input { width: 20px; height: 20px; accent-color: #1B1B1B; }
#btn-forgot-password, #view-login > p button { color: #363993; font-size: 14px; font-weight: 700; text-decoration: underline; }
#btn-forgot-password, #view-login > p button { transition: color .18s ease; }
#btn-forgot-password:hover, #view-login > p button:hover { color: #1b1b1b; }
#loginModalForm button[type="submit"] { height: 52px; margin-top: 6px; padding: 0 14px; align-items: center; gap: 10px; border: 0; border-radius: 0; background: #2AC1DB; box-shadow: none; color: #1B1B1B; clip-path: polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); font: 700 14px 'Orbitron', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
#loginModalForm button[type="submit"]:hover { background: #1FB0CB; }
#view-login > p { margin: 22px 0 0; font-size: 14px; color: #4B5563; }
#loginModalPanel:has(#view-register.active-view) { border: 0; border-radius: 0; clip-path: polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,30px 100%,0 calc(100% - 30px)); font-family: 'Outfit', sans-serif; }
#loginModalPanel:has(#view-register.active-view) > .px-6 { padding: 0 32px 36px; }
#loginModalPanel:has(#view-register.active-view) #loginModalClose { top: 23px; right: 26px; width: 34px; height: 34px; padding: 10px; color: #2AC1DB; background: #2A2B30; border-radius: 0; clip-path: polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%); }
#view-register .register-brand { height: 80px; margin: 0 -32px 28px; background: #1B1B1B; display: flex; align-items: center; justify-content: center; }
#view-register .register-brand img { width: 180px; max-height: 45px; object-fit: contain; }
#view-register > .text-center { margin: 0 0 18px; }
#view-register > .text-center h2 { margin: 0; color: #1B1B1B; font: 700 22px/1.15 'Orbitron', sans-serif; letter-spacing: .03em; text-transform: uppercase; }
#view-register > .text-center p { margin: 8px 0 0; color: #4B5563; font: 14px/1.5 'Outfit', sans-serif; }
#view-register .register-social { margin: 0; }
#view-register .register-social a { position: relative; isolation: isolate; height: 48px; padding: 0 14px; border: 0; border-radius: 0; box-shadow: none; background: #D5D9E0; color: #1B1B1B; font-size: 15px; font-weight: 600; clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px)); }
#view-register .register-social a::before { content: ''; position: absolute; inset: 1px; z-index: -1; background: #fff; clip-path: polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px)); }
#view-register .register-social a:hover { background: #2AC1DB; }
#view-register .register-divider { margin: 22px 0 20px; }
#view-register .register-divider span { font-size: 12px; color: #6B7280; }
#registerModalForm { display: flex; flex-direction: column; gap: 16px; }
#registerModalForm > *, #registerModalForm .form-group { margin: 0; }
#registerModalForm .form-group label { margin: 0 0 8px; color: #1B1B1B; font: 600 13px 'Outfit', sans-serif; }
#registerModalForm .form-group input { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid #D5D9E0; border-radius: 0; background: #fff; box-shadow: none; color: #1B1B1B; font: 15px 'Outfit', sans-serif; }
#registerModalForm .form-group input::placeholder { font-size: 14px; }
#registerModalForm .register-passwords input::placeholder { font-size: 12px; }
#registerModalForm .form-group input:focus { border-color: #2AC1DB; outline: 0; box-shadow: 0 0 0 3px rgba(42,193,219,.18); }
#registerModalForm .input-wrapper { margin: 0; }
#registerModalForm .input-wrapper input { padding-right: 42px; }
#registerModalForm .btn-toggle-pass { right: 4px; width: 40px; height: 40px; color: #4B5563; }
#registerModalForm .register-passwords > div { min-width: 0; }
#registerModalForm .register-password-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
  margin: -10px 0 0;
  min-width: 0;
}
#registerModalForm #passwordStrength {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 2px 8px;
  margin-top: 5px;
  white-space: normal;
  font: 500 12px/1.35 'Outfit', sans-serif;
  width: auto;
}
#registerModalForm #passwordStrength .strength-label { font-weight: 600; }
#registerModalForm #passwordStrength .hint { white-space: normal; font: inherit; }
#registerModalForm #passwordStrength .hint.warning { color: #6b5b24; }
#registerModalForm #passwordStrength .hint.success { color: #168da1; }
#registerModalForm #passwordMatch { margin-top: 5px; white-space: normal; font: 500 12px/1.35 'Outfit', sans-serif; }
#registerModalForm #passwordMatch:empty { display: none !important; }
#registerModalForm #passwordMatch:not(:empty)::before,
#registerModalForm #passwordStrength .hint.success::before {
  content: '';
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
#registerModalForm #passwordMatch.error::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
/* Indicadores de contraseña del registro */
#registerModalForm #passwordStrength {
  width: 100%;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px;
  margin-top: 10px;
}
#registerModalForm #passwordStrength .strength-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #454e55;
  font: 600 12px/1.3 'Outfit', sans-serif;
}
#registerModalForm #passwordStrength .strength-label::before {
  content: '';
  flex: 0 0 55px;
  height: 3px;
  background: linear-gradient(to right, #2ac1db 0 31%, #e1e7ea 31% 34%, #e1e7ea 34% 65%, #fff 65% 69%, #e1e7ea 69%);
}
#registerModalForm #passwordStrength.medium .strength-label::before {
  background: linear-gradient(to right, #2ac1db 0 31%, #fff 31% 34%, #2ac1db 34% 65%, #fff 65% 69%, #e1e7ea 69%);
}
#registerModalForm #passwordStrength.strong .strength-label::before {
  background: linear-gradient(to right, #2ac1db 0 31%, #fff 31% 34%, #2ac1db 34% 65%, #fff 65% 69%, #2ac1db 69%);
}
#registerModalForm #passwordStrength .password-criteria {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #778189;
  font: 400 12px/1.35 'Outfit', sans-serif;
}
#registerModalForm .password-criteria .criterion { display: inline-flex; align-items: center; gap: 6px; }
#registerModalForm .password-criteria .criterion::before,
#registerModalForm #passwordMatch:not(:empty)::before {
  content: '';
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1px solid #9aa5aa;
  background: transparent;
  mask: none;
  -webkit-mask: none;
}
#registerModalForm .password-criteria .criterion.met { color: #38434a; }
#registerModalForm .password-criteria .criterion.met::before,
#registerModalForm #passwordMatch.success::before { background: #2ac1db; border-color: #2ac1db; }
#registerModalForm #passwordMatch.error::before { border-color: #b4233c; mask: none; -webkit-mask: none; }
#registerModalForm #passwordMatch { margin-top: 10px; }
#registerModalForm .form-check { align-items: flex-start; font-size: 14px; line-height: 1.4; }
#registerModalForm .form-check input { width: 20px; height: 20px; margin: 0; accent-color: #1B1B1B; }
#registerModalForm .form-check a, #registerModalForm .login-link button { color: #363993; font-weight: 600; text-decoration: underline; }
#registerModalForm .form-check a { transition: color .18s ease; }
#registerModalForm .form-check a:hover { color: #1b1b1b; }
#registerModalForm #submitBtn { height: 52px; align-items: center; gap: 10px; border: 0; border-radius: 0; background: #2AC1DB; box-shadow: none; color: #1B1B1B; clip-path: polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); font: 700 14px 'Orbitron', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
#registerModalForm #submitBtn:disabled { opacity: .55; }
#registerModalForm #submitBtn:hover:not(:disabled) { background: #1FB0CB; }
#registerModalForm .login-link { margin: 6px 0 0; color: #4B5563; font-size: 14px; }
#registerModalForm .login-link button { transition: color .18s ease; }
#registerModalForm .login-link button:hover { color: #1b1b1b; }
#registerModalForm .login-link button:focus-visible { outline: 2px solid #2AC1DB; outline-offset: 3px; }
#loginModalPanel:has(#view-recovery.active-view) { border: 0; border-radius: 0; clip-path: polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,30px 100%,0 calc(100% - 30px)); font-family: 'Outfit', sans-serif; }
#loginModalPanel:has(#view-recovery.active-view) > .px-6 { padding: 0 32px 36px; }
#loginModalPanel:has(#view-recovery.active-view) #loginModalClose { top: 23px; right: 26px; width: 34px; height: 34px; padding: 10px; color: #2AC1DB; background: #2A2B30; border-radius: 0; clip-path: polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%); }
#view-recovery .recovery-brand { height: 80px; margin: 0 -32px 32px; background: #1B1B1B; display: flex; align-items: center; justify-content: center; }
#view-recovery .recovery-brand img { width: 180px; max-height: 45px; object-fit: contain; }
#view-recovery [id^="rec-step"] > .text-center { margin: 0 0 24px; }
#view-recovery h2 { margin: 0; color: #1B1B1B; font: 700 22px/1.15 'Orbitron', sans-serif; letter-spacing: .03em; text-transform: uppercase; }
#view-recovery .text-center p { margin: 8px 0 0; font: 14px/1.5 'Outfit', sans-serif; color: #4B5563; }
#view-recovery form { display: flex; flex-direction: column; gap: 20px; }
#view-recovery form > * { margin: 0; }
#view-recovery .form-group { margin: 0; }
#view-recovery .form-group label { margin: 0 0 8px; font: 600 13px 'Outfit', sans-serif; color: #1B1B1B; }
#view-recovery .form-group input { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid #D5D9E0; border-radius: 0; background: #fff; box-shadow: none; font: 15px 'Outfit', sans-serif; color: #1B1B1B; }
#view-recovery .form-group input:focus { border-color: #2AC1DB; outline: 0; box-shadow: 0 0 0 3px rgba(42,193,219,.18); }
#view-recovery #rec-code { padding-left: .6em; text-align: center; font-size: 18px; font-weight: 600; letter-spacing: .6em; }
#rec-step2 .text-center p { overflow-wrap: anywhere; }
#view-recovery .input-wrapper { margin: 0; }
#view-recovery .input-wrapper input { padding-right: 48px; }
#view-recovery .btn-toggle-pass { right: 4px; width: 40px; height: 40px; color: #4B5563; }
#view-recovery form > div[id^="rec-msg"]:empty { display: none; }
#view-recovery form > button[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; padding: 0 14px; border: 0; border-radius: 0; background: #2AC1DB; box-shadow: none; color: #1B1B1B; clip-path: polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); font: 700 14px 'Orbitron', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
#view-recovery form > button[type="submit"]::after { content: '→'; font: 22px 'Outfit', sans-serif; }
#view-recovery form > button[type="submit"]:hover:not(:disabled) { background: #1FB0CB; }
#view-recovery form > button[type="button"] { margin: 0; color: #363993; font: 600 14px 'Outfit', sans-serif; text-decoration: underline; }
#view-recovery #btn-resend-recovery,
#view-recovery #btn-back-step1 { transform-origin: center; transition: color .18s ease, transform .18s ease; }
#view-recovery #btn-resend-recovery:hover:not(:disabled),
#view-recovery #btn-back-step1:hover { color: #168da1; transform: scale(1.04); }
#view-recovery #btn-resend-recovery:focus-visible,
#view-recovery #btn-back-step1:focus-visible { color: #168da1; outline: 2px solid #2AC1DB; outline-offset: 3px; }
#view-recovery form > button[type="button"]:disabled { opacity: .55; background: transparent; }
#view-recovery .recovery-resend-status { margin: -10px 0 0; text-align: center; color: #374151; font: 14px/1.4 'Outfit', sans-serif; }
#view-recovery .recovery-resend-status[hidden] { display: none; }
.recovery-code-error-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.4); }
.swal2-popup.recovery-code-error { display: block; box-sizing: border-box; text-align: center; width: min(448px, 100%); padding: 0 32px 40px; border-radius: 0; background: #fff; clip-path: polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,30px 100%,0 calc(100% - 30px)); font-family: 'Outfit', sans-serif; }
.swal2-popup.recovery-code-error::before { content: ''; display: block; height: 80px; margin: 0 -32px; background: #1B1B1B url('../images/Logo_Horizontal2_Versi_nPrincipal.png') center / 180px auto no-repeat; }
.swal2-popup.recovery-code-error .swal2-icon { width: 76px; height: 76px; margin: 36px auto 0; border: 0; }
.swal2-popup.recovery-code-error .swal2-icon .swal2-icon-content { width: 76px; height: 76px; }
.swal2-popup.recovery-code-error .swal2-title { margin: 20px 0 0; padding: 0; color: #1B1B1B; font: 700 22px/1.15 'Orbitron', sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.swal2-popup.recovery-code-error .swal2-html-container { margin: 10px 0 0; padding: 0; color: #4B5563; font: 15px/1.5 'Outfit', sans-serif; }
.swal2-popup.recovery-code-error .swal2-actions { display: flex; justify-content: center; margin: 26px auto 0; }
.swal2-popup.recovery-code-error .swal2-confirm { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 230px; min-height: 52px; margin: 0; padding: 0 32px; border: 0; border-radius: 0; background: #2AC1DB; color: #1B1B1B; clip-path: polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); font: 700 14px 'Orbitron', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.swal2-popup.recovery-code-error .swal2-confirm::after { content: '→'; font: 22px 'Outfit', sans-serif; }
.swal2-popup.recovery-code-error .swal2-confirm:hover { background: #1FB0CB; }
@media (max-width: 480px) {
  #loginModalPanel:has(#view-register.active-view) > .px-6 { padding: 0 22px 26px; }
  #loginModalPanel:has(#view-register.active-view) #loginModalClose { top: 17px; right: 16px; }
  #view-register .register-brand { height: 68px; margin: 0 -22px 22px; }
  #view-register > .text-center h2 { font-size: 19px; }
  #registerModalForm .form-group input { font-size: 16px; }
  #registerModalForm .register-passwords input::placeholder { font-size: 14px; }
  #registerModalForm .register-passwords { grid-template-columns: 1fr; gap: 16px; }
  #loginModalPanel:has(#view-login.active-view) > .px-6 { padding: 0 22px 26px; }
  #loginModalPanel:has(#view-recovery.active-view) > .px-6 { padding: 0 22px 26px; }
  #loginModalPanel:has(#view-recovery.active-view) #loginModalClose { top: 17px; right: 16px; }
  #view-recovery .recovery-brand { height: 68px; margin: 0 -22px 22px; }
  #view-recovery h2 { font-size: 19px; }
  #view-recovery .form-group input { font-size: 16px; }
  .swal2-popup.recovery-code-error { padding: 0 22px 30px; }
  .swal2-popup.recovery-code-error::before { height: 68px; margin: 0 -22px; }
  .swal2-popup.recovery-code-error .swal2-icon { margin-top: 26px; }
  .swal2-popup.recovery-code-error .swal2-title { font-size: 19px; }
  #loginModalPanel:has(#view-login.active-view) #loginModalClose { top: 17px; right: 16px; }
  #view-login .login-brand { height: 68px; margin: 0 -22px 22px; }
  #loginModalForm input[type="email"], #loginModalForm input[type="password"], #loginModalForm input[type="text"] { font-size: 16px; }
  #loginModalForm .login-options input[type="checkbox"] { appearance: none; position: relative; flex: none; border: 0; border-radius: 0; background: #6B7280; clip-path: polygon(0 0,calc(100% - 6px) 0,100% 6px,100% 100%,0 100%); cursor: pointer; }
  #loginModalForm .login-options input[type="checkbox"]::before { content: ''; position: absolute; inset: 1.5px; background: #fff; clip-path: polygon(0 0,calc(100% - 4.5px) 0,100% 4.5px,100% 100%,0 100%); }
  #loginModalForm .login-options input[type="checkbox"]:checked { background: #1B1B1B; }
  #loginModalForm .login-options input[type="checkbox"]:checked::before { background: #1B1B1B; }
  #loginModalForm .login-options input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 6px; top: 4px; width: 7px; height: 10px; border: solid #2AC1DB; border-width: 0 2px 2px 0; transform: rotate(45deg); }
}
.modal-view { display: none; opacity: 0; transition: opacity 0.25s ease-in-out;}
.active-view { display: block !important; }
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.font-orbitron { font-family: 'Orbitron', sans-serif; }
.benefits { background: #f9f9f9; border-left: 4px solid #2AC1DB; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem;}
.benefits h4 { font-size: 0.9rem; color: #1B1B1B; margin-bottom: 0.5rem;}
.benefits ul { margin: 0; padding: 0; list-style: none; font-size: 0.8rem; color: #333;}
.benefits li { margin-bottom: 0.3rem; }
.password-strength { display: none; width: 100%; min-width: 0; white-space: nowrap; gap: 10px; margin: 4px 0 0 0; padding: 0; height: auto; border-radius: 0; font-size: 0.78rem; font-weight: 500; line-height: 1.35; color: #374151; box-sizing: border-box; background: transparent; border: 0; }
.password-strength .strength-label { margin: 0; padding: 0; line-height: 1.35; white-space: nowrap; font: inherit; }
.password-strength.weak { color: #b4233c; }
.password-strength.medium { color: #8a6a00; }
.password-strength.strong { color: #168da1; }
.hint { display: inline-flex !important; align-items: center; gap: 5px; margin: 0; padding: 0; clear: none; font-size: 0.78rem; line-height: 1.35; font-weight: 500; white-space: nowrap; }
.hint.success { color: #168da1; }
.hint.warning { color: #8a6a00; }
.hint.error { color: #b4233c; }
.recovery-status-icon { display: block; flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#view-recovery #rec-passwordMatch { margin-top: 8px !important; }
.login-link { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: #555; }
.login-link a { color: #2AC1DB; font-weight: 500; text-decoration: none; }
.login-link a:hover { text-decoration: underline; }
.back-link { text-align: center; margin-top: 1rem; }
.back-link a { font-size: 0.8rem; color: #fff; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }
.hidden { display: none; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px);}
.modal-content { background: #1a1a1a; border: 1px solid #333; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px; text-align: center; color: white; box-shadow: 0 0 20px rgba(0, 210, 255, 0.2); }
.modal-input { width: 100%; padding: 12px; margin-bottom: 15px; background: #000; border: 1px solid #333; color: white; border-radius: 8px; box-sizing: border-box; outline: none; transition: border-color 0.3s; }
.modal-input:focus { border-color: #00d2ff; }
.modal-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 0.5rem; color: white; }
.modal-desc { font-size: 0.9rem; color: #aaa; margin-bottom: 1.5rem; }
#verificationCode { width: 100%; padding: 15px; font-size: 24px; text-align: center; letter-spacing: 8px; background: #000; border: 2px solid #333; color: #00d2ff; border-radius: 8px; margin-top: 15px; box-sizing: border-box; }
#verificationCode:focus { border-color: #00d2ff; outline: none; }
.modal-footer { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.btn-primary { background: linear-gradient(45deg, #00d2ff, #0078ff); border: none; padding: 12px; color: white; border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%; transition: opacity 0.3s; }
.btn-primary:hover { opacity: 0.9; }
.btn-link { background: none; border: none; color: #888; cursor: pointer; text-decoration: underline; width: 100%; margin-top: 10px; font-size: 0.9em; border-radius: 8px; transition: background 0.3s; }
.btn-link:hover { color: #ccc; }
.swal2-container { z-index: 99999 !important; }
.colored-toast.swal2-icon-success { background-color: #a5dc86 !important; }
.colored-toast.swal2-icon-error { background-color: #f27474 !important; }
.colored-toast.swal2-icon-warning { background-color: #f8bb86 !important; }
.colored-toast.swal2-icon-info { background-color: #3fc3ee !important; }
.colored-toast.swal2-icon-question { background-color: #87adbd !important; }
.colored-toast .swal2-title { color: white; }
.colored-toast .swal2-close { color: white; }
.colored-toast .swal2-html-container { color: white; }
/* Contenedor relativo para atrapar los elementos absolutos dentro */
.input-wrapper {
    position: relative !important; /* CRÍTICO: Mantiene el botón dentro */
    width: 100%;
    display: block;
}

/* El botón del ojo */
.btn-toggle-pass {
    position: absolute;
    top: 50%;              /* Centrar verticalmente */
    right: 10px;           /* Pegado a la derecha con margen */
    transform: translateY(-50%); /* Ajuste fino de centrado */
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #888;
    padding: 5px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;          /* Altura fija para evitar saltos */
    width: 30px;
    transition: color 0.2s ease;
}

.btn-toggle-pass:hover {
    color: #2AC1DB;
    background: transparent !important;
}

.btn-toggle-pass svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.btn-toggle-pass:hover svg {
    transform: scale(1.15);
}

/* Ajuste del input para que el texto no se escriba encima del ojo */
.input-with-icon {
    padding-right: 45px !important; 
}
