:root {
  --primary-color: #FF462E;
  --primary-dark: #232323;
  --secondary-color: #FF462E;
  --success-color: #2ecc71;
  --error-color: #FF462E;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #7f8c8d;
  --text-color: #333;
  --white: #e0e0e0;
  --dark: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "inter", system-ui, -apple-system, sans-serif;
  background-color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text-color);
  line-height: 1.5;
}

/* Logo */
.logo-container {
  max-width: 25rem;
  margin-top: 90px;
  margin-bottom: 70px;

}

.logo-container img {
  width: 100%;
  height: auto;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 600px;
  padding: 0 43px;
}

/* Form Elements */
.form-group {
  margin-bottom: 48px;
}

label {
  display: block;
  margin-bottom: 15px;
  color: var(--white);
  font-weight: 500;
}

input {
  width: 100%;
  padding: 20px;
  border: unset;
  border-radius: 21px;
  font-size: 18px;
  font-weight: bold;
  transition: border-color var(--transition), box-shadow var(--transition);
  background-color: var(--dark);
  color: var(--white);
}

input:focus {
  outline: none;
}


/* Contenedor para input de contraseña */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  padding-right: 3rem; 
}

/* Botón para mostrar/ocultar contraseña */
.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #555555;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.25rem;
  transition: color var(--transition), background-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.toggle-password:hover {
  color: #555555;
  background-color: rgba(33, 39, 72, 0.05);
}

.toggle-password:active {
  transform: translateY(-50%) scale(0.95);
}

.toggle-password:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.toggle-password i {
  font-size: 1.125rem;
  color: #555555;
  transition: transform var(--transition);
}

/* Estado activo del botón */
.toggle-password.active {
  color: var(--primary-color);
}

.toggle-password.active i {
  transform: scale(1.1);
}

/* Error States */
.error-message {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.3125rem;
  display: none;
}


/* Button */
.btn {
  width: 100%;
  padding: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 21px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 60px;
}

.btn:hover:not(:disabled) {
  background-color: var(--dark);
  transform: translateY(-1px);
  color: var(--primary-color);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  background-color: var(--medium-gray);
  color: var(--dark);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading Animation */
.loading {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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

/* Response Messages */
.response-message {
  padding: 13px;
  border-radius: 10px;
  font-size: 17px;
  background-color: #6e2e34;
  border: 2px solid #DF414A;
  color: var(--white);
  display: flex;
  align-content: center;
  margin-bottom: 25px;
  display: none;
}

.response-message img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.response-success {
  background-color: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.response-error {
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  
  .login-container {
    padding: 1.5rem;
  }
  
  .logo-container {
    max-width: 18rem;
  }
  
  .toggle-password {
    width: 2.25rem;
    height: 2.25rem;
    right: 0.5rem;
  }
  
  .password-input-container input {
    padding-right: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .loading {
    animation: none;
    border-top-color: transparent;
  }
  
  .toggle-password i {
    transition: none;
  }
}

/* Estilos para modo táctil */
@media (hover: none) and (pointer: coarse) {
  .toggle-password {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  
  .toggle-password:active {
    background-color: rgba(33, 39, 72, 0.1);
  }
}