/* RESETEO GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body,
html {
    height: 100%;
}

body {
    position: relative;
    margin: 0;
    background: url('../img/portada para el inicio.jpg') no-repeat center center/cover;
}

/* Capa semitransparente sobre la imagen de fondo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* Contenedor principal centrado */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 70px);
    /* altura del navbar */
    position: relative;
    z-index: 1;
}

/* Login Container */
.login-container {
    display: flex;
    width: 800px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
}

/* Panel izquierdo */
.login-left {
    flex: 1;
    background: url('tu-imagen-panel.jpg') no-repeat center center/cover;
    position: relative;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    backdrop-filter: blur(5px);
}

.login-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.login-left h1,
.login-left p {
    position: relative;
    z-index: 1;
}

.login-left h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.login-left p {
    font-size: 16px;
    line-height: 1.5;
}

/* Panel derecho */
.login-right {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.login-right h2 {
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Inputs con íconos */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* espacio para el icono */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(5px);
}

.input-group input::placeholder {
    color: #eee;
}

/* Opciones y botones */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: #fff;
}

.options label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.options a {
    color: #fff;
    text-decoration: underline;
}

.signup-text {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.login-right button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(106, 90, 249, 0.8), rgba(159, 127, 255, 0.8));
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-right button:hover {
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .login-left {
        display: none;
        /* Ocultar panel izquierdo en móviles */
    }

    .login-right {
        width: 100%;
        padding: 30px;
    }
}


/* ====== BARRA SUPERIOR ====== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: transparent;
    /* Sin color ni opacidad */
    backdrop-filter: none;
    /* Sin desenfoque */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    z-index: 10;
    box-shadow: none;
    /* Sin sombra */
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.logo .highlight {
    color: #f9b233;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f9b233;
}

/* Ajuste para que el contenido no quede debajo de la barra */
.main-content {
    padding-top: 70px;
}