/* AUTENTICAR - TERMOPLÁSTICOS CALIANO */

:root {
    --tg-rojo: #b11226;
    --tg-rojo-oscuro: #7a0c19;
    --tg-rojo-claro: #ff4d5e;

    --tg-negro: #111111;
    --tg-gris-oscuro: #2b2b2b;
    --tg-gris: #6c757d;
    --tg-gris-claro: #f4f4f4;
    --tg-blanco: #ffffff;
}

/* CONTENEDOR GENERAL */
.pagina-autenticar {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(177, 18, 38, 0.28), transparent 32%),
        linear-gradient(135deg, #111111 0%, #292929 50%, #3a0007 100%);
    display: flex;
    flex-direction: column;
}

/* CUERPO DEL LOGIN */
.contenido-autenticar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
}

/* PANEL PRINCIPAL */
.login-reg-panel {
    width: 100%;
    max-width: 980px;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.38);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* LADO IZQUIERDO */
.register-info-box {
    background:
        linear-gradient(145deg, rgba(17, 17, 17, 0.96), rgba(43, 43, 43, 0.94)),
        radial-gradient(circle at top left, rgba(177, 18, 38, 0.35), transparent 42%);
    color: var(--tg-blanco);
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.register-info-box::before {
    content: "";
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(177, 18, 38, 0.22);
    position: absolute;
    top: -45px;
    right: -45px;
}

.register-info-box::after {
    content: "";
    width: 90px;
    height: 90px;
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    position: absolute;
    bottom: 28px;
    left: 30px;
    transform: rotate(12deg);
}

.register-info-box h3 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.register-info-box p {
    color: #dddddd;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 360px;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* PANEL BLANCO */
.white-panel {
    background: #ffffff;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FORMULARIO */
.login-show {
    width: 100%;
    max-width: 400px;
}

.logo-login {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.logo-login img {
    height: 82px;
    width: auto;
    object-fit: contain;
}

.login-show h2 {
    text-align: center;
    color: var(--tg-negro);
    font-weight: 900;
    margin-bottom: 24px;
    font-size: 1.65rem;
}

/* CAMPOS */
.campo {
    margin-bottom: 16px;
}

.campo label {
    display: block;
    color: #2b2b2b;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 7px;
}

.campo input,
.campo select {
    width: 100%;
    height: 46px;
    border: 1px solid #dcdcdc;
    border-radius: 16px;
    background: #f8f8f8;
    color: #111111;
    padding: 0 15px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s ease;
}

.campo select {
    cursor: pointer;
}

.campo input:focus,
.campo select:focus {
    border-color: var(--tg-rojo);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(177, 18, 38, 0.12);
}

.campo input::placeholder {
    color: #9a9a9a;
}

/* BOTÓN LOGIN */
.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--tg-rojo);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.98rem;
    margin-top: 6px;
    transition: 0.2s ease;
    box-shadow: 0 12px 24px rgba(177, 18, 38, 0.28);
}

.btn-login:hover {
    background: var(--tg-rojo-oscuro);
    transform: translateY(-1px);
}

/* ALERTA ERROR */
.alerta-error {
    margin-top: 18px;
    background: rgba(177, 18, 38, 0.10);
    color: var(--tg-rojo-oscuro);
    border: 1px solid rgba(177, 18, 38, 0.25);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

/* VOLVER */
.volver {
    text-align: center;
    margin-top: 18px;
}

.volver a {
    color: #555555;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.volver a:hover {
    color: var(--tg-rojo);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-reg-panel {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .register-info-box {
        padding: 30px 28px;
        text-align: center;
        align-items: center;
    }

    .register-info-box p {
        max-width: 420px;
    }

    .white-panel {
        padding: 30px 24px;
    }
}

@media (max-width: 575px) {
    .contenido-autenticar {
        padding: 22px 14px;
    }

    .login-reg-panel {
        border-radius: 24px;
    }

    .register-info-box {
        padding: 26px 20px;
    }

    .register-info-box h3 {
        font-size: 1.7rem;
    }

    .register-info-box p {
        font-size: 0.92rem;
    }

    .white-panel {
        padding: 26px 18px;
    }

    .logo-login img {
        height: 70px;
    }

    .login-show h2 {
        font-size: 1.45rem;
    }
}