/* Modo oscuro de Crea tu cuenta (clase "tema-oscuro" en <html>; la misma del login y del resto de SION, ver Scripts/ModoOscuro.js).
   La hoja base usa variables, asi que basta con redefinirlas. */
html.tema-oscuro {
    color-scheme: dark;
    --azul: #6b9bff;
    --azul-oscuro: #9bbaff;
    --azul-suave: #1f2c45;
    --fondo: #0f1623;
    --tarjeta: #151f31;
    --texto: #e5e9f0;
    --texto-suave: #94a0b4;
    --borde: #2a3446;
    --verde: #4ade80;
    --verde-suave: rgba(74, 222, 128, .15);
    --rojo: #fca5a5;
    --rojo-suave: rgba(220, 38, 38, .15);
    --ambar-suave: rgba(251, 191, 36, .14);
}
html.tema-oscuro .ru-tarjeta { box-shadow: 0 20px 60px rgba(0, 0, 0, .45); border: 1px solid #222d41; }
html.tema-oscuro .ru-logo { filter: brightness(0) invert(1); }
html.tema-oscuro .ru-input,
html.tema-oscuro .ru-select,
html.tema-oscuro .ru-opcion { background-color: #131c2c; }
html.tema-oscuro .ru-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2394a0b4' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}
html.tema-oscuro .ru-input::placeholder { color: #6b778c; }
html.tema-oscuro .ru-input:focus,
html.tema-oscuro .ru-select:focus { box-shadow: 0 0 0 3px rgba(79, 124, 255, .25); }
html.tema-oscuro .ru-opcion.elegida { background: var(--azul-suave); }
html.tema-oscuro input:-webkit-autofill,
html.tema-oscuro input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #131c2c inset; -webkit-text-fill-color: #e5e9f0; caret-color: #e5e9f0; }
html.tema-oscuro .ru-icono.alerta { color: #fbbf24; }
html.tema-oscuro .ru-boton { color: #0f1623; background: #e5e9f0; }
html.tema-oscuro .ru-boton:hover { background: #fff; }
html.tema-oscuro .ru-boton.secundario { background: transparent; color: #e5e9f0; border-color: #6b9bff; }
html.tema-oscuro .ru-boton.secundario:hover { background: var(--azul-suave); }
html.tema-oscuro .ru-giro { border-color: rgba(15, 22, 35, .35); border-top-color: #0f1623; }

/* interruptor claro/oscuro (abajo a la derecha) */
.tema-toggle-login { position: fixed; right: 8px; bottom: 20px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: #4f5bff; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); z-index: 5; transition: transform .2s; }
.tema-toggle-login:hover { transform: scale(1.08); }
.tema-toggle-login .fa { font-size: 16px; }
