/* ===== VARIABLES (Mismas que el resto del sitio) ===== */
:root {
  --violeta: #4b0076;
  --violeta-claro: #6a00a3;
  --lila-bg: #f6d9f3;
  --blanco: #ffffff;
  --texto: #2d2d2d;
  --gris-claro: #f4eff5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  font-family: 'Montserrat', sans-serif;
  /* Fondo suave en lugar de oscuro */
  background: linear-gradient(135deg, #fdfbfd 0%, #eac8f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Evita scroll si no es necesario */
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.login-container {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* ===== TARJETA DE LOGIN (Glassmorphism Light) ===== */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(75, 0, 118, 0.15); /* Sombra elegante morada */
  text-align: center;
  border: 1px solid rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

/* Decoración superior (barra morada) */
.login-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: var(--violeta);
}

/* ===== HEADER ===== */
.login-header { margin-bottom: 30px; }

.logo-circle {
    width: 80px; height: 80px;
    margin: 0 auto 15px;
    background: var(--lila-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.logo-circle img { width: 50px; height: auto; }

.login-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--violeta);
    font-size: 26px; margin: 0 0 5px;
}
.login-header p {
    color: #666; font-size: 14px; margin: 0;
}

/* ===== INPUTS ===== */
.input-group { text-align: left; margin-bottom: 20px; }

.input-group label {
    font-size: 13px; font-weight: 600; color: var(--violeta);
    margin-bottom: 6px; display: block;
}

.input-wrapper {
    position: relative;
    display: flex; align-items: center;
}

.input-wrapper i {
    position: absolute; left: 15px;
    color: #a88bb5; font-size: 16px;
}

/* Icono del ojo (mostrar pass) */
.input-wrapper .show-pass {
    left: auto; right: 15px; cursor: pointer;
    transition: color 0.3s;
}
.input-wrapper .show-pass:hover { color: var(--violeta); }

.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 40px; /* Espacio para los iconos */
    border: 2px solid var(--gris-claro);
    background: var(--gris-claro);
    border-radius: 12px;
    font-size: 15px;
    color: var(--texto);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--violeta);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(75, 0, 118, 0.1);
}

/* ===== BOTONES Y LINKS ===== */
.actions {
    display: flex; justify-content: flex-end;
    margin-bottom: 25px;
}
.forgot-pass {
    font-size: 12px; color: #888; text-decoration: none;
    transition: color 0.2s;
}
.forgot-pass:hover { color: var(--violeta); text-decoration: underline; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--violeta);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 10px 20px rgba(75, 0, 118, 0.2);
}

.btn-login:hover {
    background: var(--violeta-claro);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(75, 0, 118, 0.3);
}

/* ===== FOOTER ===== */
.login-footer { margin-top: 30px; font-size: 14px; color: #555; }
.login-footer a {
    color: var(--violeta); font-weight: 700; text-decoration: none;
}
.login-footer a:hover { text-decoration: underline; }

.back-home {
    display: inline-block; margin-top: 15px;
    font-size: 13px; color: #888 !important; font-weight: 500 !important;
}
.back-home:hover { color: var(--violeta) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-card { padding: 30px 20px; }
    .login-header h1 { font-size: 22px; }
}