/* ============================================================
   login.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Mono:wght@500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TEMA POR DEFECTO (claro) ── */
/* ── TEMA CLARO (minimalista) ── */
:root {
    --bg:       #f0ede8;
    --card:     #faf9f7;
    --border:   #ddd9d2;
    --text:     #1a1916;
    --muted:    #7a7670;
    --accent:   #2563eb;
    --accent-h: #1d4ed8;
    --radius:   10px;
    --dot:      #c9c4bc;
}

/* ── TEMA ROSA (más dulce y redondeado) ── */
body.tema-rosa {
    --bg:       #ffeef7;
    --card:     #fff8fc;
    --border:   #ffb6d9;
    --text:     #5a2245;
    --muted:    #c76b9b;
    --accent:   #ff69b4;
    --accent-h: #e91e63;
    --radius:   20px;
    --dot:      #ffb3dd;
}
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem; /* Un poco más de aire en los bordes */
    transition: background 0.4s;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
    background-size: 32px 32px; /* Patrón de puntos más disperso y sutil */
    opacity: 0.25; /* Menos ruidoso visualmente */
    pointer-events: none;
    transition: opacity 0.4s;
}

/* ── Botón de cambio de tema ── */
.btn-tema {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 30px; /* Bordes completamente redondeados tipo píldora */
    padding: 6px 14px; /* Más estilizado y menos alto */
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; /* Tipografía ligeramente más fina */
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    z-index: 999;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); /* Sombra más tenue */
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-tema:hover { background: var(--border); }

/* Circulito que muestra el color del tema actual */
.btn-tema .tema-dot {
    width: 8px; /* Un toque más pequeño y delicado */
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    transition: background 0.3s;
}

/* ── Caja exterior ── */
.cajafuera {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ── Tarjeta principal ── */
.formulariocaja {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px; /* Curvas más pronunciadas y suaves */
    padding: 2rem; /* Más espacio para una estructura limpia y elegante */
    width: 330px; /* Ligeramente más esbelta */
    box-shadow: 0 10px 40px rgba(0,0,0,0.04); /* Sombra difuminada muy fina */
    transition: background 0.4s, border-color 0.4s;
}

/* ── Barra de pestañas ── */
.botondeintercambiar {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px; /* Esquinas más curvadas */
    padding: 5px;
    margin-bottom: 1.5rem; /* Mayor separación con los inputs */
    position: relative;
    transition: background 0.4s, border-color 0.4s;
}

#btnvai {
    position: absolute;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: var(--accent);
    border-radius: 10px; /* Selector interno redondeado en armonía */
    left: 5px;
    top: 5px;
    transition: left 0.3s ease, background 0.4s;
    z-index: 0;
}

.botoncambiarcaja {
    flex: 1;
    padding: 9px 0;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* Texto sutilmente más pequeño */
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
    border-radius: 10px;
}

/* ── Wrapper que recorta los formularios ── */
.slides-wrapper {
    overflow: hidden;
    position: relative;
    transition: height 0.4s ease;
}

/* ── Formularios ── */
.grupo-entradas {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Más separación entre campos para evitar saturación */
    position: absolute;
    width: 100%;
    top: 0;
    transition: left 0.4s ease;
}

#frmlogin     { left: 0; }
#frmregistrar { left: 100%; }

/* ── Imagen de usuario ── */
.logovai {
    text-align: center;
    margin-bottom: 1.25rem;
}
.logovai img {
    width: 64px; /* Logotipo un poco más pequeño y estilizado */
    height: 64px;
    object-fit: contain;
}

/* ── Labels ── */
.grupo-entradas b {
    font-size: 12px; /* Letra de etiquetas más discreta */
    font-weight: 500;
    color: var(--muted);
    margin-top: 6px;
    transition: color 0.4s;
}

/* ── Inputs ── */
.cajaentradatexto {
    width: 100%;
    padding: 10px 14px; /* Más acolchado interno */
    border: 1px solid var(--border);
    border-radius: 12px; /* Reemplazado var(--radius) por un radio más curvo y suave */
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* Tipografía interior más estilizada */
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.4s, color 0.4s;
}
.cajaentradatexto:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.06); /* Enfoque con un halo más difuminado */
}

/* ── Fila captcha ── */
.filacaptcha {
    display: flex;
    gap: 10px;
    align-items: center;
}
.cajaentradarecaptcha {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px; /* Consistencia en bordes redondeados */
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.4s, color 0.4s;
}
.cajaentradarecaptcha:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.06);
}
.fondorecaptcha {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    background: var(--border);
    color: var(--text);
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    user-select: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, background 0.4s, color 0.4s;
}
.fondorecaptcha:hover { opacity: 0.7; }

/* ── Botón enviar ── */
.botonenviar {
    width: 100%;
    padding: 12px; /* Botón ligeramente más alto y cómodo */
    margin-top: 14px; /* Mayor separación del último input */
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px; /* Esquinas acordes a la suavidad general */
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.botonenviar:hover  { background: var(--accent-h); }
.botonenviar:active { transform: scale(0.97); } /* Efecto de clic un poco más sutil */