/* Página principal */
.page {
  background-image: url(../img/blur.jpg);
  background-repeat: no-repeat;
  min-width: 450px;
  height: 100vh;
  background-size: cover;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Contenedor de la tarjeta */
.card-container.card {
  max-width: 480px;
  width: 480px;
  padding: 3%;
  padding-bottom: 15%;	
}

.btn {
  font-weight: 700;
  height: 36px;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

/* Tarjeta principal */
.card {
  background: linear-gradient(135deg, #D9DDE4 0%, #E8EBF0 100%);
  padding: 40px 35px 190px;     /* espacio inferior ≈ radio + margen */
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  position: relative;
  overflow: hidden;             /* el círculo no sale del card */
}

.profile-img-card {
  margin: 0 auto 30px;
  display: block;
  max-width: 280px;
  height: auto;
}

/* Estilos del formulario */
.profile-name-card {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0 0;
  min-height: 1em;
  color: #474747;
}

.reauth-email {
  display: block;
  color: #404040;
  line-height: 2;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.form-signin #id_sc_field_login,
.form-signin #id_sc_field_pswd {
  direction: ltr;
  height: 50px;
  font-size: 16px;
  font-family: 'Kumbh Sans', sans-serif;
}

.form-signin input[type=email],
.form-signin input[type=password],
.form-signin input[type=text] {
  width: 100%;
  display: block;
  margin-bottom: 18px;
  z-index: 2;                   /* inputs por encima del botón */
  position: relative;
  box-sizing: border-box;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 15px;
  padding: 12px 20px;
  color: #474747;
  font-family: 'Kumbh Sans', sans-serif;
}

.form-signin input::placeholder {
  color: #999999;
  font-family: 'Kumbh Sans', sans-serif;
}

.form-signin .form-control:focus {
  border-color: #6891A2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(104,145,162,.1);
}

/* Opciones de tema (Light/Dark) */
.btn-group {
  width: 100%;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.sc-ui-checkbox-options { display: none; }

.sc-ui-checkbox-options ~ label {
  color: #474747;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding-left: 30px;
  padding-right: 30px;	
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.sc-ui-checkbox-options ~ label:before {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #999999;
  border-radius: 50%;
  background-color: transparent;
}

.sc-ui-checkbox-options:checked ~ label:before {
  background-color: #474747;
  border-color: #474747;
  box-shadow: inset 0 0 0 3px #FFFFFF;
}

/* Botón de entrada: círculo centrado y recortado por el card */
.btn.btn-signin{
  position: absolute;
  left: 50%;
  bottom: -154px;              /* = -(diámetro/2) → muestra media luna */
  transform: translateX(-50%);
  width: 345px !important;                /* ↓ DIÁMETRO */
  height: 284px;               /* ↓ DIÁMETRO */
  margin: 0;
  padding-bottom: 145px;        /* Mueve el texto hacia arriba */
  border-radius: 50%;
  background: #FFFFFF !important;
  color: #474747 !important;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transition: transform .25s, box-shadow .25s;
  z-index: 1;
}

.btn.btn-signin:hover,
.btn.btn-signin:active,
.btn.btn-signin:focus{
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.2);
}

/* Enlaces */
.forgot-password { color: rgb(104,145,162); }
.forgot-password:hover,
.forgot-password:active,
.forgot-password:focus { color: rgb(12,97,33); }

button { margin-bottom: 20px; }

.class-links a {
  text-decoration: none;
  color: #6891A2;
  font-family: 'Kumbh Sans', sans-serif;
  display: block;
  margin-bottom: 5px;
}
.class-links a:hover,
.class-links a:active,
.class-links a:focus {
  color: #3b8683;
  font-weight: 500;
  text-decoration: underline;
}

/* Mensajes de error */
#id_error_display_fixed {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  height: 100%;
}
table.scFormErrorTable {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  padding: 15px;
  background-color: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  opacity: 1;
  width: 250px;
  height: 100px;
  border-radius: 10px;
}
td.scFormErrorMessage { padding: 25px 0 5px !important; }
td.scFormErrorTitleFont { color: rgba(0, 0, 0, 0); position: relative; top: 8px; }
td.scFormErrorTitleFont img { position: absolute; left: 50%; margin-left: -15px; margin-top: -5px; }
a.scButton_default {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 2px 5px;
  text-decoration: none;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .card-container.card {
    max-width: 350px;
    padding: 6%;
	padding-bottom: 28%;
    width: 90%;
  }
  .card{ 
    padding-bottom: 200px;    /* Más espacio para el botón */
  }
  .btn-group {
    margin-bottom: 40px;        /* Más espacio antes del botón */
  }
  .btn.btn-signin{
    width: 260px;               /* Botón un poco más grande */
    height: 260px;
    bottom: -170px;             /* Ajuste proporcional */
    font-size: 22px;
    padding-bottom: 155px;       /* Texto más arriba */
  }
  .profile-img-card {
    max-width: 240px;
  }	
}

/* Toggle de contraseña */
span.sc-ui-pwd-toggle-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  right: 1.5rem !important;
  z-index: 3;
  float: right;
  bottom: 5rem !important;
}