:root {
    --fucsia: #EE5B9B;
    --fucsia-soft: rgba(255, 245, 249, 0.9); /* Versión con transparencia */
    --shadow: rgba(0, 0, 0, 0.2);
    --transition: all 0.4s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- FONDO CON IMAGEN --- */
body.bg-login {
    font-family: 'Segoe UI', sans-serif;
    background-image: url('Fotos/background.jpeg'); /* Tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* La imagen no se mueve */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Capa oscura para que el formulario resalte */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Ajusta el 0.4 para más o menos oscuridad */
    z-index: 1;
}

.main-wrapper {
    position: relative;
    z-index: 2; /* Por encima de la capa oscura */
    width: 100%;
    max-width: 850px;
    padding: 20px;
}

/* --- CONTENEDOR EFECTO CRISTAL --- */
.container {
    display: flex;
    background: rgba(255, 255, 255, 0.9); /* Blanco con transparencia */
    backdrop-filter: blur(10px); /* Desenfoque de fondo elegante */
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.box {
    flex: 1;
    padding: 50px 40px;
    text-align: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
}

.register-box {
    background: var(--fucsia-soft);
    border-left: 1px solid rgba(238, 91, 155, 0.2);
}

/* --- ESTILOS DE TEXTO E INPUTS --- */
h2 { color: var(--fucsia); margin-bottom: 10px; font-size: 1.8rem; }
p { color: #555; margin-bottom: 25px; font-size: 0.9rem; }

input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--fucsia);
    box-shadow: 0 0 10px rgba(238, 91, 155, 0.3);
}

/* --- BOTONES GLOW --- */
.btn-form {
    width: 100%;
    background: #fff !important;
    color: var(--fucsia) !important;
    border: 2px solid var(--fucsia) !important;
    padding: 12px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(238, 91, 155, 0.2);
}

.btn-form:hover {
    background: var(--fucsia) !important;
    color: #fff !important;
    transform: translateY(-3px);
}

.btn-retorno {
    color: white; /* Blanco para que se vea sobre el fondo oscuro */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .register-box { border-left: none; border-top: 1px solid rgba(238, 91, 155, 0.1); }
}