* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #001391 0%, #0028a8 100%);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loading-panel {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #001391;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-title {
  font-size: 20px;
  font-weight: 600;
  color: #070e46;
  margin-bottom: 8px;
}

.loading-subtitle {
  font-size: 14px;
  color: #46536d;
  margin-bottom: 32px;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

@font-face {
  font-family: 'Benton Sans BBVA';
  src: local('Benton Sans BBVA'), local('BentonSansBBVA');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Benton Sans BBVA';
  src: local('Benton Sans BBVA'), local('BentonSansBBVA');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Benton Sans BBVA';
  src: local('Benton Sans BBVA'), local('BentonSansBBVA');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Benton Sans BBVA';
  src: local('Benton Sans BBVA'), local('BentonSansBBVA');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Tiempos Headline';
  src: local('Tiempos Headline'), local('Georgia');
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #f7f8f8;
  color: #070e46;
  min-height: 100vh;
}

#\@bbva\/login {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  min-height: 100vh;
  background-color: #fff;
}

.form-view {
  background-color: #f7f8f8;
  position: relative;
  flex: 1;
}

/* ========== HEADER ========== */
.container-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  padding: 0 16px;
  background-color: #f7f8f8;
}

.header-main {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}

.logo-header {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: auto;
}

.header-title-wrapper {
  flex: 1;
}

.header-title {
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #070e46;
  line-height: 24px;
  text-align: center;
}

/* ========== MAIN CONTENT ========== */
.container-main {
  display: flex;
  margin-top: 90px;
  flex-direction: column;
}

@media (min-width: 769px) {
  .container-main {
    flex-direction: row;
  }
}

@media (min-width: 1200px) {
  .container-main {
    margin-left: 12.75rem;
    margin-right: 12.75rem;
  }
}

@media (max-width: 1199px) {
  .container-main {
    margin-left: 6.75rem;
    margin-right: 6.75rem;
  }
}

@media (max-width: 991px) {
  .container-main {
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 70px;
  }
}

/* ========== CARD ========== */
.container-card {
  text-align: center;
  max-width: 704px;
  padding: 40px 32px;
  background-color: #fff;
  border-radius: 16px;
  width: 100%;
}

@media (max-width: 768px) {
  .container-card {
    margin-top: 16px;
    padding: 16px;
  }
}

@media (min-width: 768px) {
  .container-card {
    order: 1;
  }
}

.container-form {
  display: grid;
  gap: 32px;
  max-width: 568px;
}

@media (max-width: 768px) {
  .container-form {
    gap: 16px;
  }
}

/* ========== WELCOME TITLE ========== */
.welcome-wrapper {
  margin-bottom: 40px;
}

.welcome-title {
  font-family: 'Tiempos Headline', Georgia, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 900;
  -webkit-text-stroke: 0.8px #070e46;
  text-stroke: 0.8px #070e46;
  line-height: 48px;
  color: #070e46;
  text-align: left;
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ========== LOGIN FORM ========== */
.login-form {
  text-align: left;
  max-width: 568px;
  justify-self: auto;
}

@media (max-width: 768px) {
  .login-form {
    margin-top: 32px;
  }
}

.form-fields {
  display: grid;
  gap: 24px;
}

/* ========== SELECT FIELD ========== */
.select-wrapper {
  position: relative;
}

.select-native {
  padding-right: 32px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.select-native:focus {
  border-color: #001391;
}

.select-native ~ .float-label {
  top: 8px;
  transform: translateY(0);
  font-size: 12px;
  line-height: 16px;
  color: #001391;
}

.select-native:not(:focus) ~ .float-label {
  color: #46536d;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* ========== INPUT FIELDS ========== */
.field-input {
  margin-bottom: 0;
}

.input-wrapper {
  position: relative;
}

.float-input {
  position: relative;
}

.float-input .form-input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 24px 16px 4px;
  font-size: 15px;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-weight: 350;
  color: #070e46;
  background-color: #f7f8f8;
  border: 2px solid #46536d;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.float-input .form-input:focus {
  border-color: #001391;
}

.float-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15.01px;
  font-weight: 350;
  line-height: 24px;
  color: #46536d;
  pointer-events: none;
  transition: all 0.15s ease;
  background-color: #f7f8f8;
  padding: 0 2px;
}

.float-input .form-input:focus ~ .float-label,
.float-input .form-input:not(:placeholder-shown) ~ .float-label {
  top: 8px;
  transform: translateY(0);
  font-size: 12px;
  line-height: 16px;
  color: #001391;
}

.float-input .form-input:not(:focus):not(:placeholder-shown) ~ .float-label {
  color: #46536d;
}

.float-password .form-input {
  padding-right: 48px;
}

.btn-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.btn-password-toggle:hover {
  opacity: 1;
}

/* ========== CHECKBOX ROW ========== */
.checkbox-row {
  display: flex;
  align-items: center;
  margin: 16px 0 8px;
}

@media (max-width: 480px) {
  .checkbox-row {
    margin-top: 24px;
    align-items: baseline;
  }
}

.toggle-wrapper {
  padding-left: 2px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: #001391;
  cursor: pointer;
}

.checkbox-box {
  display: none;
}

.checkbox-text {
  font-size: 15.01px;
  font-weight: 350;
  line-height: 24px;
  color: #070e46;
}

.btn-virtual-keyboard {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 15.01px;
  font-weight: 500;
  line-height: 24px;
  color: #001391;
  text-decoration: underline;
  white-space: nowrap;
  margin-top: 16px;
}

.btn-virtual-keyboard:hover {
  color: #000b5e;
}

@media (max-width: 576px) {
  .btn-virtual-keyboard {
    display: none;
  }
}

@media (max-width: 1024px) {
  .btn-virtual-keyboard {
    margin-block: 8px;
  }
}

/* ========== BUTTON ROW ========== */
.button-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .button-row {
    display: flex;
    flex-direction: column;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: none;
  border-radius: 8px;
  font-size: 15.01px;
  font-weight: 500;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.btn-primary {
  width: 50%;
  background-color: #001391;
  color: #fff;
}

.btn-primary:hover {
  background-color: #000b5e;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .btn-primary {
    width: 100%;
  }
}

/* ========== LINKS ========== */
.btn-link {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 16px;
  cursor: pointer;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 15.01px;
  font-weight: 500;
  line-height: 24px;
  color: #001391;
  text-decoration: underline;
  text-align: left;
}

.btn-link:hover {
  color: #000b5e;
}

.register-text {
  margin: 32px auto 16px;
  color: #070e46;
  font-family: 'BentonSansBBVA-Book', 'Benton Sans BBVA', sans-serif;
  font-weight: 350;
  font-size: 15.01px;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: center;
}

.btn-link-inline {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 15.01px;
  font-weight: 500;
  line-height: 24px;
  color: #001391;
  text-decoration: underline;
}

.btn-link-inline:hover {
  color: #000b5e;
}

/* ========== NOTIFICATION CARD ========== */
.notification-card {
  width: 370px;
  padding: 16px 32px 16px 16px;
}

@media (max-width: 768px) {
  .notification-card {
    margin-top: 16px;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .notification-card {
    margin-left: 24px;
    order: 2;
    height: fit-content;
  }
}

.notification-content {
  padding: 16px;
  background-color: #fff;
  border-radius: 12px;
  position: relative;
}

.btn-notification-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  border-radius: 4px;
}

.btn-notification-close:hover {
  opacity: 1;
}

.notification-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-title {
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 15.01px;
  font-weight: 500;
  line-height: 24px;
  color: #070e46;
}

.notification-body {
  margin-bottom: 8px;
}

.notification-body p {
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 14px;
  font-weight: 350;
  line-height: 20px;
  color: #46536d;
}

.btn-link-notification {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #001391;
  text-decoration: underline;
}

.btn-link-notification:hover {
  color: #000b5e;
}

/* ========== FOOTER ========== */
.footer {
  height: 288px;
  padding: 48px 40px 40px;
  display: flex;
  justify-content: flex-start;
  background-color: #001391;
  border-radius: 16px;
  margin: 16px;
}

@media (max-width: 480px) {
  .footer {
    height: 424px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: center;
  }
}

.footer-container {
  width: 100%;
  position: relative;
}

@media (min-width: 1200px) {
  .footer-container {
    margin-left: 9rem;
    margin-right: 9rem;
  }
}

@media (max-width: 1199px) {
  .footer-container {
    margin-left: 3.5rem;
    margin-right: 3.5rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .footer-container {
    display: flex;
    margin-left: 0;
    flex-direction: column;
    align-items: center;
  }
}

.footer-logo {
  width: 107px;
  height: 32px;
}

.footer-links {
  display: flex;
  margin-block: 40px 80px;
  gap: 16px;
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
  }
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #85c8ff;
  text-decoration: underline;
}

.footer-link:hover {
  color: #53a9ef;
}

.footer-social {
  display: flex;
  height: fit-content;
  gap: 8px;
  position: absolute;
  top: 0;
  right: 0;
}

@media (max-width: 480px) {
  .footer-social {
    position: static;
    margin-bottom: 40px;
    gap: 16px;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .social-link svg {
    width: 32px;
    height: 32px;
  }
}

.banned-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #001391 0%, #0028a8 100%);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.banned-modal {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  pointer-events: none;
}

.banned-title {
  font-size: 20px;
  font-weight: 600;
  color: #ef4444;
  margin: 16px 0 8px;
}

.banned-message {
  font-size: 14px;
  color: #46536d;
}

.copyright {
  color: #fff;
  font-family: 'Benton Sans BBVA', 'BentonSansBBVA', sans-serif;
  font-size: 12px;
  font-weight: 350;
  line-height: 16px;
  margin-top: 16px;
}
