* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  font-family: "Trebuchet MS", trebuchet, sans-serif;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('https://ib.bhd.com.do/wps/contenthandler/dav/fs-type1/themes/BHDTheme/build/themes/images/login_background.jpg');
  background-size: cover;
  background-position: 0% 0%;
  background-repeat: no-repeat;
}

/* ===== CARD: 325px wide, 4px radius, no border ===== */
.login-card {
  background-color: white;
  width: 325px;
  border-radius: 4px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.10);
  text-align: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  margin-top: -15px;
}

#iframeMock {
  width: 100%;
}

.login-card.is-loading #iframeMock {
  margin-top: 15px;
  width: 295px;
  /* Shrinks the form width so the scrollbar sits exactly 10px from the 241px dropdown */
  margin-left: auto;
  margin-right: auto;
  padding-right: 10px;
  overflow: scroll;
  /* Forces BOTH vertical and horizontal scrollbars */
}

.login-card.is-loading .dropdown-wrapper {
  margin-top: 0;
  /* Transfers top margin to the loginForm so scrollbar starts flush with the dropdown's top edge */
}

.login-card.is-loading .footer-bar {
  margin-top: 150px;
  /* Pushes the 'Internet Banking' button further down */
}

.card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== LOGO: 325x100, margin-top 15px ===== */
.logo-container {
  margin-top: 15px;
  margin-bottom: 20px;
  width: 325px;
}

.logo-container img {
  width: 325px;
  height: 100px;
  display: block;
}

/* ===== FORM ===== */
#loginForm {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.global-loading {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: calc(100% + 10px);
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.global-loading img {
  width: 20px;
  height: 20px;
}

/* ===== DROPDOWN: 241px wide, 50px tall ===== */
.dropdown-wrapper {
  position: relative;
  margin: 15px 10px 10px 10px;
  width: 241px;
  text-align: left;
}

.dropdown-selected {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 28px;
  border: 0.667px solid #dadada;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
}

.dropdown-dot {
  width: 10px;
  height: 10px;
  background-color: #0059a3;
  border-radius: 50%;
  flex-shrink: 0;
}

.dropdown-text {
  font-size: 15px;
  color: #0059a3;
  font-weight: 600;
  font-style: italic;
  margin-left: 10px;
}

.dropdown-chevron {
  background: url("assets/dd_arrow_login.gif") no-repeat;
  height: 20px;
  margin-top: -10px;
  width: 30px;
  display: inline-block;
  position: absolute;
  right: 4px;
  top: 50%;
}

.dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 0.667px solid #dadada;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 100;
  overflow: hidden;
}

.dropdown-options.open {
  display: block;
}

.dropdown-option {
  padding: 12px 15px 12px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
  font-weight: 600;
  font-style: italic;
}

.dropdown-option:hover {
  background-color: #e8f0fe;
}

.dropdown-option.selected {
  background-color: #4285f4;
  color: #fff;
}

.dropdown-option.selected .dropdown-dot {
  background-color: #fff;
}

/* ===== RADIO: 14px, bold 700 ===== */
.radio-group {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 0px;
  margin-bottom: 15px;
  width: 241px;
  padding-left: 0;
}

.pasaporte-hint {
  width: 244px;
  font-family: "Trebuchet MS", trebuchet, sans-serif;
  font-size: 11px;
  color: #333;
  text-align: left;
  margin-top: -5px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.radio-option {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  font-weight: 700;
  font-family: "Trebuchet MS", trebuchet, sans-serif;
}

.radio-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  outline: none;
  cursor: pointer;
  border: 4.5px solid #ccc;
  border-radius: 50%;
  position: relative;
  background-color: #fff;
  flex-shrink: 0;
}

.radio-option input:checked {
  border-color: #222;
}

.radio-option input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6.5px;
  height: 6.5px;
  background-color: #222;
  border-radius: 50%;
}

/* ===== INPUTS: 244px wide, 44px tall, 6px radius ===== */
.form-control {
  width: 244px;
  padding: 13px 15px;
  margin-top: 10px;
  margin-bottom: 17px;
  border: 0.667px solid #dadada;
  border-radius: 6px;
  font-size: 12px;
  background-color: #fff;
  color: #3b5a76;
  font-family: Arial, sans-serif;
  font-style: normal;
  height: 44px;
  outline: none;
}

.form-control::placeholder {
  color: #888;
  font-size: 12px;
  font-weight: 400;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
}

.form-control.has-error,
.captcha-input.has-error {
  border: 1px solid #b30000 !important;
}

.input-error-msg {
  color: red;
  font-size: 11px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  width: 244px;
  text-align: left;
  margin-top: -12px;
  margin-bottom: 10px;
}

.captcha-input-group {
  display: flex;
  flex-direction: column;
}

.captcha-error-msg {
  width: 135px;
  margin-top: 5px;
  margin-bottom: 0px;
}

/* ===== CAPTCHA: img 97x44, input 135px ===== */
.captcha-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 244px;
}

.captcha-box {
  text-align: left;
  flex-shrink: 0;
}

.captcha-img-wrapper {
  position: relative;
  width: 97px;
  height: 44px;
}

.captcha-img {
  height: 44px;
  width: 97px;
  border: 0.667px solid #dadada;
  border-radius: 3px;
  display: block;
  background-color: #f5f5f5;
}

.refresh-link {
  margin-top: 4px;
  margin-left: 0px;
  display: block;
  font-size: 11px;
  color: #333;
  text-decoration: none;
  font-weight: 400;
  font-family: Tahoma, sans-serif;
  cursor: pointer;
}

.refresh-link:hover {
  color: #6bc04b;
}

.captcha-input {
  width: 135px;
  padding: 13px 15px;
  border: 0.667px solid #dadada;
  border-radius: 6px;
  font-size: 12px;
  background-color: #fff;
  color: #3b5a76;
  font-family: Arial, sans-serif;
  font-style: normal;
  height: 44px;
  outline: none;
}

.captcha-input::placeholder {
  color: #888;
  font-size: 12px;
  font-weight: 400;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
}

/* ===== FORGOT LINK: 12px ===== */
.forgot-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 5px;
  margin-bottom: 8px;
  width: 244px;
}

.forgot-link {
  font-size: 12px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 300;
  font-family: "Trebuchet MS", trebuchet, sans-serif;
}

.lock-icon {
  width: 14px;
  height: 18px;
  background: url("assets/candado_olvido.png") no-repeat center/contain;
  display: inline-block;
  margin-right: 6px;
}

/* ===== ENTRAR BUTTON: 100x35, #6bc04b, 6px radius ===== */
.btn-primary {
  width: 100px;
  height: 35px;
  background-color: #6bc04b;
  color: white;
  border: none;
  padding: 0;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  margin: 10px auto 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:hover {
  background-color: #5fb03c;
}

/* ===== FOOTER: inset button style, #555 ===== */
.footer-bar {
  background-color: #555555;
  margin: 12px 20px 20px 20px;
  width: calc(100% - 40px);
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 13.33px;
  font-weight: 400;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-link:hover {
  text-decoration: underline;
}