:root {
  --color1: #2C3E50; /* azul gris oscuro - header y botón principal */
  --color2: #1ABC9C; /* verde agua suave - hover y acentos */
  --color3: #34495E; /* gris profundo - textos principales */
  --color4: #ECF0F1; /* fondo claro elegante */
  --color5: #E74C3C; /* rojo coral - alertas */
  --color6: #cbdacd; /* gris claro - textos secundarios */

  --bg-light: var(--color4);
  --text-main: var(--color3);
  --header-bg: var(--color1);
  --header-border: var(--color2);
  --brand-color: var(--color2);
}

/* Reset básico y tipografía global */
* {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

body {
  margin-top: 20px;
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* Contenedor principal flotante */
.main {
  background-color: var(--header-bg); /* azul gris oscuro */
  color: var(--bg-light); /* texto claro */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 520px;
  padding: 0;
  overflow: hidden;
}

/* Títulos */
.main h1,
.form-panel h3,
.icon-title h3 {
  color: var(--bg-light);
  text-align: center;
}

/* Swipe container */
.swipe-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.swipe-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 200%;
}

/* Paneles de formulario */
.form-panel {
  width: 50%;
  padding: 20px 25px 30px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  color: inherit;
}

/* Íconos y flechas */
.form-panel i,
.icon-title i,
.side-btn i {
  color: var(--bg-light);
}

.side-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  color: var(--bg-light);
}

.icon-grande {
  font-size: clamp(32px, 5vw, 64px);
}


/* Formularios */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--bg-light);
}

input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  background-color: #fff;
  color: var(--text-main);
}

input::placeholder {
  color: var(--color6);
}

button {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background-color: var(--brand-color);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

/* Navegación */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px 15px;
}

/* Responsive */
@media (max-width: 480px) {
  .form-panel {
    padding: 15px;
  }

  h1 {
    font-size: 1.4rem;
  }
}

/* Íconos */
.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.icon-title {
  text-align: center;
  font-family: inherit;
  color: inherit;
}


.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 40px; /* espacio para el ícono */
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--color6);
    font-size: 1rem;
    transition: color 0.2s;
}

.password-wrapper .toggle-password:hover {
    color: var(--bg-light);
}



/* Mensajes de alerta en login */
.login-alert {
    color: var(--bg-light);        /* texto blanco */
    text-align: center;            /* centrado */
    padding: 10px 15px;            /* espacio interno */
    border-radius: 8px;            /* bordes redondeados */
    margin-bottom: 15px;           /* separación de otros elementos */
    font-weight: bold;
    font-size: 0.95rem;
}