:root {
  --primary: #eb6f92;           
  --secondary: #31748f;         
  --dark: #191724;              
  --darker: #151320;            
  --light: #e0def4;             
  --gray: #6e6a86;              
  --card-bg: #1f1d2e;           
  --card-border: rgba(224, 222, 244, 0.10); 
  --success: #31748f;           
  --warning: #f6c177;           
  --danger: #eb6f92;            
}

* {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}


body {
  background: linear-gradient(135deg, var(--darker), var(--dark));
  color: var(--light);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* Círculos de fondo adicionales en el body */
body::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(196, 167, 231, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: float3 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(235, 111, 146, 0.07) 0%, transparent 70%);
  top: 15%;
  right: 12%;
  pointer-events: none;
  animation: float4 22s ease-in-out infinite;
}

@keyframes float3 {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(20px, calc(-50% + 20px)); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

/* Contenedor adicional para más círculos */
.bg-circles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

/* Círculo 5 - Púrpura superior izquierda */
.bg-circles::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(196, 167, 231, 0.09) 0%, transparent 70%);
  top: 5%;
  left: 5%;
  pointer-events: none;
  animation: float5 17s ease-in-out infinite;
}

/* Círculo 6 - Azul medio derecha */
.bg-circles::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(49, 116, 143, 0.08) 0%, transparent 70%);
  top: 45%;
  right: 8%;
  pointer-events: none;
  animation: float6 19s ease-in-out infinite;
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -25px); }
}

@keyframes float6 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 25px); }
}
#authScreens {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}



.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  background: transparent;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos de fondo - esquina superior derecha (rosa) */
.auth-container::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(235, 111, 146, 0.12) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  pointer-events: none;
  animation: float1 15s ease-in-out infinite;
}

/* Círculo inferior izquierdo (azul) */
.auth-container::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(49, 116, 143, 0.1) 0%, transparent 70%);
  bottom: -250px;
  left: -150px;
  pointer-events: none;
  animation: float2 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}


.auth-card {
  background: #1f1d2e;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
  backdrop-filter: none;
  opacity: 1;
}

.auth-card,
.auth-container,
#authScreens {
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.auth-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

/* Círculo 7 - Rosa centro inferior del fondo */
.auth-header::before {
  content: '';
  position: absolute;
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(235, 111, 146, 0.06) 0%, transparent 70%);
  bottom: -350px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: float7 21s ease-in-out infinite;
  z-index: -1;
}

@keyframes float7 {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(calc(-50% + 20px), -20px); }
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}


.logo-icon {
background: var(--primary);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex
;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: logoFloat 1s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.logo-icon i {
  font-size: 32px;
  color: white;
}


.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  background: #e0def4;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: var(--gray);
  font-size: 16px;
}




.auth-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--light);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: linear-gradient(#e0def4, #e0def4);
}
.auth-divider span {
  font-weight: 600;
  color: var(--light);
  opacity: 0.9;
}

.guest-login-container {
  display: flex;
  justify-content: center;
  width: 100%;
}


.btn {
  padding: 16px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
}


.btn-primary {
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 2px 8px rgba(235, 111, 146, 0.2);
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(235, 111, 146, 0.35);
}


.btn-google {
  background: #e0def4;
  color: #6e6a86;
  box-shadow: 0 2px 8px rgba(235, 111, 146, 0.2);
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-weight: 600;
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(235, 111, 146, 0.35);
}

.btn-google svg {
  flex-shrink: 0;
}


.btn-back {
  background: transparent;
  color: #6e6a86;
  width: 100%;
  padding: 12px 20px;
  margin-top: 16px;
}

.btn-back:hover {
  color: #e0def4;
}



.auth-form {
  margin-top: 30px;
}


.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray);
  font-size: 14px;
}


.form-control {
  width: 100%;
  padding: 16px;
  background: #191724;
  border: none;
  border-radius: 12px;
  color: var(--light);
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: left;
  box-sizing: border-box;
}

.form-control:hover {
  background: #181525;
}

.form-control:focus {
  outline: none;
  background: #181525;
  box-shadow: 0 0 0 3px rgba(235, 111, 146, 0.12);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #8e8aa7;
  text-align: left;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .form-control {
  padding-right: 48px;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.toggle-password {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 10;
}

.toggle-password:hover {
  color: #f597b8;
  transform: scale(1.1);
}

.toggle-password:focus {
  outline: none;
}

.form-footer {
  text-align: center;
  margin-top: 30px;
  color: var(--gray);
  font-size: 14px;
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 600;
}

.legal-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
  opacity: 0.7;
}

.legal-footer a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-footer a:hover {
  color: var(--primary);
}

.hidden {
  display: none;
}

/* Checkbox Recordar sesión */
.remember-me-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  margin-top: 4px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.remember-me-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray);
  border-radius: 5px;
  background: #191724;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.remember-me-row input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.remember-me-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.remember-me-row span {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.remember-me-row:hover span {
  color: var(--light);
}

.remember-me-row:hover input[type="checkbox"] {
  border-color: var(--primary);
}

.error-message {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 5px;
  font-weight: 500;
}




.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
}


.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  z-index: 1002;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.custom-alert-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light);
}

.custom-alert-message {
  color: #e0def4;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}


.custom-alert-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Desactivar efectos hover/active en dispositivos móviles */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .btn-primary:hover,
  .btn-google:hover,
  .btn-back:hover,
  .form-control:hover,
  .toggle-password:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(235, 111, 146, 0.2) !important;
  }
}





