/* Reset y estilos generales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #2D2B3D;
}

/* Contenedor tipo pantalla móvil */
.app-container {
  width: 100%;
  max-width: 414px;
  height: 100vh;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}

.logo {
  font-size: 38px;
  font-weight: 800;
  color: #5B21B6;
  letter-spacing: -1.5px;
  line-height: 1;
}

.chat-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Contenido Principal */
.main-content {
  margin-top: -30px;
}

.greeting {
  font-size: 16px;
  color: #2D2B3D;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 400;
}

.title {
  font-size: 20px;
  font-weight: 700;
  color: #2D2B3D;
  text-align: center;
  margin-bottom: 40px;
}

/* Inputs con estilo flotante/subrayado */
.form-group {
  position: relative;
  margin-bottom: 35px;
}

.form-group input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #2D2B3D;
  padding: 8px 0;
  font-size: 16px;
  color: #2D2B3D;
  outline: none;
  background: transparent;
  border-radius: 0;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 16px;
  color: #2D2B3D;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Animación cuando el input tiene texto o está enfocada */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
  top: -18px;
  font-size: 12px;
  color: #5B21B6;
}

.form-group input:focus {
  border-bottom-color: #5B21B6;
}

/* Icono Ojo (Mostrar/Ocultar Contraseña) */
.password-group {
  display: flex;
  align-items: center;
}

.toggle-password {
  position: absolute;
  right: 0;
  bottom: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Enlace Olvidaste tu contraseña */
.forgot-container {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 30px;
}

.forgot-link {
  color: #5B21B6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

/* Botón Ingresar */
.btn-submit {
  width: 100%;
  height: 48px;
  background-color: #E9E1FF; /* Tono lila claro deshabilitado / por defecto */
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #5B21B6; /* Morado activo */
}

/* Checkbox Recuérdame */
.remember-container {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none; /* Ocultamos el checkbox nativo */
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #5B21B6;
  border-radius: 4px;
  margin-right: 10px;
  display: inline-block;
  position: relative;
  background-color: #fff;
  transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background-color: #5B21B6;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-text {
  font-size: 15px;
  color: #2D2B3D;
  font-weight: 400;
}

/* Footer / Abrir Cuenta Nueva */
.footer {
  text-align: center;
  padding-bottom: 10px;
}

.btn-register {
  color: #5B21B6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
}