:root {
  --primary-font: "Roboto", sans-serif;
  --text-color: #1a1a1a;
  --text-secondary-color: #464559;
  --text-disabled-color: #a3a3a3;
  --border-color: #d9d9d9;
  --redirect-color: #0033ff;
  --redirect-hover-color: #295bff;
  --redirect-press-color: #0024d9;
  --custom-white: #ffffff;
  --placeholder-text-color: #a3a3a3;
  --product-container: #3a4755;
  --product-container-hover: #67737f;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    0deg,
    #001529 24.51%,
    rgba(0, 21, 41, 0.5) 347.46%
  );
  font-family: var(--primary-font);
}

a {
  color: var(--redirect-color);
  text-decoration: none;
}

.background-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
}

.container {
  width: 380px;
  background-color: var(--custom-white);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-logo {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 0 0 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.brand-logo.show {
  opacity: 1;
}

.welcome-heading {
  font-size: 30px;
}

.container-options {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 14px;
}

.container-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.container-form.show {
  opacity: 1;
}

.container-input {
  position: relative;
}

.container-input label {
  line-height: 32px;
  display: flex;
  align-items: center;
}

.form-description {
  margin: 0;
  color: var(--text-secondary-color);
  font-size: 14px;
  line-height: 22px;
}

.input {
  padding: 10px;
  width: 200px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.input-container,
.password-container {
  position: relative;
}

.error-icon {
  position: absolute;
  display: none;
  right: 10px;
  top: 50%;
  transform: translateY(-40%);
}

.input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 8px;
  font-size: 16px;
  padding: 0 12px;
  box-sizing: border-box;
  font-weight: 400;
  flex: 1;
}

.input:hover {
  border-color: var(--redirect-color);
  outline-color: var(--redirect-color);
}

.input:focus {
  border-color: var(--redirect-color);
  outline-color: var(--redirect-color);
}

.input::before {
  content: url("/idp/static/icons/EyeInvisibleOutlined.svg");
  width: 20px;
  height: 20px;
  margin-left: 5px;
}

.input::placeholder {
  color: var(--placeholder-text-color);
}

.container-checkbox {
  display: flex;
  align-items: center;
}

.container-return {
  width: 100%;
  display: flex;
  justify-content: center;
  font-weight: 600;
  gap: 8px;
}

.checkbox {
  outline: none;
  border: 1px solid #ccc;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.checkbox:checked {
  background-color: var(--redirect-color);
  border: 1px solid var(--redirect-color);
}

.container-footer {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.container-footer p {
  color: #bfbfbf;
}

.button {
  height: 40px;
  background-color: var(--redirect-color);
  color: var(--custom-white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.button:hover,
button:focus {
  background-color: var(--redirect-hover-color);
}

.button:active {
  background-color: var(--redirect-press-color);
}

.toast {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 50px;
  background-color: var(--custom-white);
  width: fit-content;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: row; /* Asegura que los elementos estén en una fila */
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap; /* Evita que los elementos se envuelvan */
}

.toast img {
    display: inline-block;
}


.toast span {
  display: inline-block;
  margin: 0;
  padding: 0;
}


.toast-message {
  font-weight: 400;
}

.toast-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-description {
  font-size: 14px;
}

/* Error page styles */

.error-container {
  color: var(--custom-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url("/idp/static/images/Content.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  padding: 175px 300px;
}

.product-container {
  color: var(--custom-white);
  display: grid;
  height: 100%;
  grid-template-columns: 60% 40%;
}

.error-column-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-right: 300px;
}

.product-column-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-background {
  background-image: url("/idp/static/images/Wheel.png");
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.error-type {
  color: var(--text-disabled-color);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.error-title {
  font-weight: 600;
  font-size: 38px;
  line-height: 46px;
  margin: 0;
}

.error-reference-help {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 8px 0;
}

.error-detail-description {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  background-color: #000;
  padding: 8px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.error-description {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  margin: 0;
}


.redirect-container-box {
  display: flex;
  width: 100%;
  gap: 8px;
  justify-content: space-between;
}

.redirect-container {
  display: flex;
  gap: 8px;
}

.log-out-container a {
  color: var(--custom-white);
  white-space: nowrap;
  margin-right: 32px;
}

.log-out-container a:hover {
  text-decoration: underline;
}

.redirect-link {
  fill: var(--custom-white);
  color: var(--custom-white);
  font-weight: 600;
}

.redirect-link:hover {
  color: #cccccc;
}

/* Same slot as a redirect link, but plain information: nothing to click. */
.redirect-hint {
  color: var(--custom-white);
  font-weight: 400;
  cursor: default;
}

.product-selection-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-selection {
  background-color: var(--product-container);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-radius: 8px;
  width: 330px;
  justify-content: space-between;
  cursor: pointer;
}

.product-selection:hover {
  background-color: var(--product-container-hover);
}

.product-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-selection a {
  color: #fff;
}

.product-icon {
  color: #fff;
  transform: rotate(180deg);
}

.button .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: button-spin 0.6s linear infinite;
}

.button.loading .spinner {
  display: inline-block;
}

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

/* Opcional: mueve el texto ligeramente a la izquierda cuando aparece el spinner */
.button.loading .button-label {
  margin-right: 4px;
}

/* MFA Phone */
.country-phone-container {
  display: flex;
}
.phone-form .country-select,
.phone-form .phone-input {
  flex: auto;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--custom-white);
}

.phone-form .phone-input {
  margin-left: 8px;
}
.phone-form .phone-input::placeholder {
  color: var(--placeholder-text-color);
}
.corner-logo {
  position: absolute; /* Usamos absolute en lugar de fixed */
  bottom: 20px;
  right: 20px;
  z-index: 1;
}

.corner-logo img {
  width: 100px;
  height: auto;
}