/* Language/Flag Footer Redesign */
.localeSelector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  white-space: nowrap;
  width: 100%;
}
.localeFlagDropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.flag-dropdown-btn {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.localeFlagChip {
  display: inline-block;
  line-height: 1;
  font-size: 20px;
}
.dropdown-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: #888;
  transform: translateY(1px);
}
.flag-dropdown-list {
  position: absolute;
  left: 0;
  top: 110%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 120px;
  z-index: 10;
  padding: 4px 0;
  list-style: none;
}
.flag-dropdown-list[hidden] {
  display: none;
}
.flag-dropdown-list li {
  padding: 6px 18px 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #222;
  transition: background 0.15s;
}
.flag-dropdown-list li:hover, .flag-dropdown-list li.selected {
  background: #f2f4f7;
}
.localeLangSwitch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.localeLangSwitch .lang-option {
  border: 0;
  background: transparent;
  color: #b0b0b0;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, font-weight 0.15s;
  text-align: left;
}
.localeLangSwitch .lang-option.selected {
  color: #222;
  font-weight: 700;
}
.localeLangSwitch .lang-option.secondary {
  color: #b0b0b0;
  font-weight: 500;
}
.localeLangSwitch .lang-separator {
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1;
}
.localeLangSwitch .lang-separator {
  display: inline;
  color: #b0b0b0;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}

:root {
  --paypal-blue: #0070ba;
  --paypal-blue-dark: #003087;
  --paypal-text: #2c2e2f;
  --paypal-muted: #515354;
  --paypal-border: #cfd8dc;
  --paypal-bg: #f7f9fa;
  --paypal-surface: #ffffff;
  --paypal-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--paypal-text);
  background: #ffffff;
  letter-spacing: -0.01em;
}

#login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.corral {
  width: min(100%, 460px);
}

.contentContainer {
  background: #ffffff;
  border: 1px solid rgba(207, 216, 220, 0.95);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(17, 30, 52, 0.14);
  padding: 34px 30px 28px;
}

#header {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.paypal-logo {
  display: inline-block;
  width: 256px;
  height: 60px;
  background: url("../asset/paypal.png") no-repeat center / contain;
}

.headerText {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: #111111;
}

.subHeaderText {
  margin: 0 0 18px;
  color: #4b545a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.hide {
  display: none !important;
}

.notifications {
  min-height: 12px;
  margin-bottom: 12px;
}

.textInput {
  margin-bottom: 14px;
}

.fieldWrapper {
  position: relative;
}

.fieldWrapper input {
  width: 100%;
  height: 60px;
  padding: 24px 18px 10px;
  border: 1px solid #cfd8dc;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: #111111;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fieldWrapper.inputWithToggle input {
  padding-right: 92px;
}

.fieldWrapper input:focus {
  outline: none;
  border-color: #0070ba;
  box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.14);
}

.fieldLabel {
  position: absolute;
  left: 18px;
  top: 19px;
  font-size: 16px;
  font-weight: 500;
  color: #8c9499;
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.fieldWrapper:focus-within + .fieldLabel,
.fieldWrapper.is-focused + .fieldLabel,
.fieldWrapper.has-value + .fieldLabel,
.fieldWrapper.is-focused .fieldLabel,
.fieldWrapper.has-value .fieldLabel {
  top: 10px;
  font-size: 12px;
  color: #8c9499;
}

.passwordToggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #0070ba;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 8px;
}

.passwordToggle:hover {
  text-decoration: underline;
}

.errorMessage {
  margin-top: 6px;
  font-size: 13px;
  color: #b42318;
}

.show-hide-password,
.recoveryOption {
  font-size: 13px;
  color: #0070ba;
  text-decoration: none;
}

.recoveryOption {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}

.actions {
  margin-top: 18px;
}

.button {
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.actionContinue {
  width: 100%;
  background: #0070ba;
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 112, 186, 0.22);
}

.actionContinue:hover {
  background: #003087;
}

.secondary {
  width: 100%;
  background: #fff;
  color: #0070ba;
  border: 1px solid #0070ba;
}

.intentFooter {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ebeff1;
  display: flex;
  justify-content: center;
}

.localeSelector {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

.localeFlagDropdown {
  display: flex;
  align-items: center;
}

.localeLangSwitch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.localeFlagChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d6dde1;
  border-radius: 10px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.localeBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f3f5f6;
  color: #515354;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.localeLink {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.localeLink a {
  color: #0070ba;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.localeLink a.selected {
  color: #111111;
  font-weight: 800;
}

.moreOptionsDiv,
.passkeyLoginLeadButton,
.passkeyLoginLeadButtonUncookied,
.tryAnotherWayLinkContainer {
  margin-top: 12px;
  text-align: center;
}

.moreOptionsInfo,
.tryAnotherWayLinkContainer a {
  color: var(--paypal-blue);
  text-decoration: none;
  font-size: 14px;
}

.tryAnotherWayModal {
  position: fixed;
  inset: 0;
  background: rgba(44, 46, 47, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--paypal-shadow);
  padding: 20px;
}

.modal-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header-text {
  font-size: 20px;
  font-weight: 700;
}

.modal-content-body {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content-body a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--paypal-text);
  text-decoration: none;
  border-top: 1px solid #eef1f2;
}

.dialog-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .contentContainer {
    padding: 24px 18px 20px;
  }

  .headerText {
    font-size: 24px;
  }

  .fieldWrapper input {
    height: 48px;
  }
}
