﻿
/* =============================
   REGISTER PAGE — FIX: PANEL RIGHT, SAME AS LOGIN
   ============================= */

/* === CONTAINER PRINCIPAL === */
#kt_login {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

    /* === BACKGROUND VIDEO === */
    #kt_login video.background-video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
        filter: brightness(0.6);
        pointer-events: none;
    }

/* === CONTEÚDO (PAINEL DIREITO) === */
.login-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 530px; /* igual ao login */
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10;
    box-shadow: none !important;
}

/* === CONTAINER INTERNO === */
.login-container {
    width: 100%;
    max-width: 480px;
    padding: 3rem 3rem 2rem 3rem;
    margin-top: 0rem;
}

/* === LOGOS === */
.login-logos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

    .login-logos-container .logo img {
        width: clamp(220px, 80%, 320px);
        height: auto;
    }

/* === FORM INPUTS === */
.login-form .form-control {
    border: none;
    background-color: #f3f6f9;
    height: auto;
    padding: 1.25rem 1.5rem;
    border-radius: 0.475rem;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

    .login-form .form-control:focus {
        background-color: #eef3f7;
        border: 1px solid #cfd7df;
    }

.login-form button {
    font-weight: 600;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* === TEXTO JUSTIFICADO === */
#traineeAdditonalContainer .alert > div {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    #traineeAdditonalContainer .alert > div input[type="checkbox"] {
        margin-top: 0.25rem;
    }

/* === ESCALA NORMAL === */
html, body, #kt_login {
    zoom: 1 !important;
    font-size: 100% !important;
    transform: none !important;
}

/* === AJUSTES DESKTOP LARGO === */
@media (min-width: 992px) {
    .login-content {
        width: 600px !important;
    }

    .login-container {
        max-width: 560px !important;
    }
}

/* === MOBILE === */
@media (max-width: 991px) {
    #kt_login {
        display: block;
        height: auto;
        overflow-y: auto;
    }

    .login-content {
        position: relative;
        width: 100%;
        height: auto;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: none;
        padding: 2rem 1rem;
    }

    .login-container {
        max-width: 92%;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .login-logos-container .logo img {
        width: clamp(200px, 85%, 340px);
        max-width: 340px;
    }

    #roleGroupContainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin: 1rem 0;
        gap: 0.5rem;
    }

        #roleGroupContainer .btn {
            flex: 1 1 45%;
            text-align: center;
            padding: 0.8rem;
            font-size: 1rem;
            border-radius: 0.5rem;
        }

    .login-form input,
    .login-form select,
    .login-form button {
        font-size: 1rem;
    }
}

/* =============================
   SCROLL: OCULTAR EM DESKTOP, CONFIÁVEL EM MOBILE
   ============================= */

/* Desktop: scroll no painel (oculto) */
@media (min-width: 992px) {
    .login-content {
        overflow-y: auto; /* mantém scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge legacy */
    }

        .login-content::-webkit-scrollbar { /* Chrome/Safari/Edge */
            width: 0;
            height: 0;
        }
}

/* Mobile: o scroll é do body (não escondemos a barra para não quebrar) */
@media (max-width: 991px) {
    html, body {
        height: auto;
        min-height: 100svh; /* mais estável que 100vh no iOS */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y; /* iOS: evita bloqueios de scroll */
    }

    #kt_login {
        position: relative;
        display: block;
        height: auto;
        min-height: 100svh;
        overflow: visible; /* não prender o scroll no wrapper */
    }

    .login-content {
        height: auto;
        max-height: none;
        overflow: visible; /* deixa o body rolar */
    }
}

