/*==========================================================
ROMTECH CONTROLE
LOGIN.CSS
VERSÃO 5.0
==========================================================*/

/*==========================================================
RESET
==========================================================*/

*,
*::before,
*::after{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    width:100%;

    height:100%;

    scroll-behavior:smooth;

    -webkit-text-size-adjust:100%;

}

body{

    width:100%;

    min-height:100vh;

    font-family:'Inter',sans-serif;

    color:#263238;

    overflow-x:hidden;

    background:#EEF3F9;

}

/*==========================================================
BACKGROUND
==========================================================*/

.login-background{

    position:fixed;

    inset:0;

    z-index:0;

    overflow:hidden;

    background:

        linear-gradient(
            135deg,
            #0B4F8A 0%,
            #1668B4 55%,
            #2E7CC3 100%
        );

}

.login-background::before{

    content:"";

    position:absolute;

    inset:0;

    background-image:

        radial-gradient(
            rgba(255,255,255,.08) 1px,
            transparent 1px
        );

    background-size:30px 30px;

    opacity:.8;

}

.login-background::after{

    content:"";

    position:absolute;

    top:-250px;

    left:-250px;

    width:650px;

    height:650px;

    border-radius:50%;

    background:

        radial-gradient(
            rgba(255,255,255,.16),
            transparent 70%
        );

}

/*==========================================================
CONTAINER
==========================================================*/

.login-container{

    position:relative;

    z-index:5;

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

}

/*==========================================================
PAINEL
==========================================================*/

.login-panel{

    position:relative;

    width:100%;

    max-width:1380px;

    min-height:820px;

    display:flex;

    overflow:hidden;

    border-radius:28px;

    background:#FFFFFF;

    box-shadow:

        0 30px 80px rgba(0,0,0,.18);

}

/*==========================================================
COLUNA ESQUERDA
==========================================================*/

.login-left{

    position:relative;

    flex:0 0 55%;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

    padding:70px;

    background:

        linear-gradient(
            135deg,
            #0B4F8A,
            #1668B4,
            #2E7CC3
        );

}

.login-left::before{

    content:"";

    position:absolute;

    top:-220px;

    left:-220px;

    width:600px;

    height:600px;

    border-radius:50%;

    background:

        radial-gradient(
            rgba(255,255,255,.16),
            transparent 70%
        );

}

.login-left::after{

    content:"";

    position:absolute;

    right:-220px;

    bottom:-220px;

    width:520px;

    height:520px;

    border-radius:50%;

    background:

        radial-gradient(
            rgba(255,255,255,.08),
            transparent 75%
        );

}

/*==========================================================
PARTÍCULAS
==========================================================*/

#particles{

    position:absolute;

    inset:0;

    z-index:1;

    pointer-events:none;

}

/*==========================================================
CONTEÚDO ESQUERDO
==========================================================*/

.login-left-content{

    position:relative;

    z-index:2;

    width:100%;

    max-width:560px;

    display:flex;

    flex-direction:column;

    color:#FFFFFF;

}

/*==========================================================
MARCA
==========================================================*/

.login-brand{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:30px;

}

.login-brand img{

    width:72px;

    height:auto;

}

.login-brand-text{

    display:flex;

    flex-direction:column;

}

.login-brand-text h1{

    font-size:40px;

    font-weight:800;

    color:#FFFFFF;

    line-height:1;

}

.login-brand-text span{

    margin-top:8px;

    font-size:15px;

    color:rgba(255,255,255,.85);

}
/*==========================================================
TÍTULO
==========================================================*/

.login-title{

    font-size:44px;

    font-weight:700;

    line-height:1.15;

    color:#FFFFFF;

    margin-bottom:20px;

}

/*==========================================================
DESCRIÇÃO
==========================================================*/

.login-description{

    max-width:520px;

    margin-bottom:45px;

    font-size:18px;

    line-height:1.8;

    color:rgba(255,255,255,.92);

}

/*==========================================================
FEATURES
==========================================================*/

.login-features{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:18px;

    margin-top:10px;

}

/*==========================================================
CARD FEATURE
==========================================================*/

.login-feature{

    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    padding:22px;

    border-radius:18px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    transition:.35s ease;

    overflow:hidden;

}

.login-feature::before{

    content:"";

    position:absolute;

    inset:0;

    opacity:0;

    transition:.35s;

    background:

        linear-gradient(

            135deg,

            rgba(255,255,255,.12),

            transparent

        );

}

.login-feature:hover{

    transform:translateY(-5px);

    background:rgba(255,255,255,.18);

    box-shadow:

        0 15px 35px rgba(0,0,0,.20);

}

.login-feature:hover::before{

    opacity:1;

}

/*==========================================================
ÍCONE FEATURE
==========================================================*/

.login-feature-icon{

    width:60px;

    height:60px;

    flex-shrink:0;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:16px;

    background:rgba(255,255,255,.18);

    color:#FFFFFF;

    font-size:24px;

}

/*==========================================================
CONTEÚDO FEATURE
==========================================================*/

.login-feature-content{

    display:flex;

    flex-direction:column;

}

.login-feature-content h3{

    font-size:17px;

    font-weight:700;

    color:#FFFFFF;

    margin-bottom:6px;

}

.login-feature-content p{

    margin:0;

    font-size:13px;

    line-height:1.6;

    color:rgba(255,255,255,.80);

}

/*==========================================================
VERSÃO
==========================================================*/

.login-version{

    display:inline-flex;

    align-items:center;

    gap:10px;

    width:max-content;

    margin-top:40px;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.15);

    backdrop-filter:blur(12px);

    color:rgba(255,255,255,.92);

    font-size:13px;

}

.login-version i{

    font-size:15px;

}

/*==========================================================
ANIMAÇÕES ESQUERDA
==========================================================*/

.login-left-content>*{

    animation:slideLeft .6s ease both;

}

.login-left-content>*:nth-child(2){

    animation-delay:.08s;

}

.login-left-content>*:nth-child(3){

    animation-delay:.16s;

}

.login-left-content>*:nth-child(4){

    animation-delay:.24s;

}

.login-left-content>*:nth-child(5){

    animation-delay:.32s;

}

/*==========================================================
COLUNA DIREITA
==========================================================*/

.right{

    position:relative;

    flex:0 0 45%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:70px;

    background:#FFFFFF;

    overflow:hidden;

}

.right::before{

    content:"";

    position:absolute;

    inset:0;

    background:

        radial-gradient(

            circle at top right,

            rgba(11,79,138,.05),

            transparent 45%

        );

    pointer-events:none;

}
/*==========================================================
LOGIN CARD
==========================================================*/

.login-card{

    width:100%;

    max-width:460px;

    padding:48px;

    border-radius:24px;

    background:#FFFFFF;

    border:1px solid #E5EAF1;

    box-shadow:
        0 20px 45px rgba(15,23,42,.08);

    animation:fadeUp .6s ease;

}

/*==========================================================
LOGO
==========================================================*/

.login-logo{

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:28px;

}

.login-logo img{

    width:170px;

    height:auto;

    display:block;

}

/*==========================================================
SUBTÍTULO
==========================================================*/

.subtitle{

    margin-bottom:35px;

    text-align:center;

    font-size:15px;

    line-height:1.7;

    color:#64748B;

}

/*==========================================================
FORM
==========================================================*/

#formLogin{

    display:flex;

    flex-direction:column;

    gap:24px;

}

/*==========================================================
FORM GROUP
==========================================================*/

.form-group{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.form-group label{

    font-size:14px;

    font-weight:600;

    color:#334155;

}

/*==========================================================
INPUT BOX
==========================================================*/

.input-box{

    position:relative;

    display:flex;

    align-items:center;

    height:54px;

    border:1px solid #D7DFE8;

    border-radius:14px;

    background:#F8FAFC;

    transition:.30s;

}

.input-box:hover{

    border-color:#1668B4;

}

.input-box:focus-within{

    border-color:#1668B4;

    background:#FFFFFF;

    box-shadow:
        0 0 0 4px rgba(22,104,180,.12);

}

/*==========================================================
ÍCONE
==========================================================*/

.input-box>i{

    width:50px;

    text-align:center;

    color:#1668B4;

    font-size:17px;

    flex-shrink:0;

}

/*==========================================================
INPUT
==========================================================*/

.input-box input{

    flex:1;

    height:100%;

    border:none;

    outline:none;

    background:transparent;

    padding-right:15px;

    font-size:15px;

    color:#1E293B;

}

.input-box input::placeholder{

    color:#94A3B8;

}

/*==========================================================
MOSTRAR SENHA
==========================================================*/

.toggle-password{

    width:50px;

    height:100%;

    border:none;

    background:none;

    cursor:pointer;

    color:#64748B;

    transition:.25s;

}

.toggle-password:hover{

    color:#1668B4;

}

/*==========================================================
OPÇÕES
==========================================================*/

.login-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    margin-top:-5px;

}

.remember{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:14px;

    color:#475569;

    cursor:pointer;

}

.remember input{

    width:16px;

    height:16px;

    accent-color:#1668B4;

}

#btnRecuperarSenha{

    font-size:14px;

    font-weight:600;

    color:#1668B4;

    text-decoration:none;

    transition:.25s;

}

#btnRecuperarSenha:hover{

    color:#0B4F8A;

    text-decoration:underline;

}

/*==========================================================
BOTÃO LOGIN
==========================================================*/

.btn-login{

    width:100%;

    height:56px;

    border:none;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            #0B4F8A,
            #1668B4
        );

    color:#FFFFFF;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    transition:.30s;

}

.btn-login:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 30px rgba(22,104,180,.28);

}

.btn-login:active{

    transform:scale(.98);

}
/*==========================================================
RODAPÉ
==========================================================*/

.login-footer{

    margin-top:35px;

    padding-top:24px;

    border-top:1px solid #E5EAF1;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    font-size:13px;

    color:#64748B;

}

.login-footer strong{

    color:#1668B4;

    font-size:14px;

}

/*==========================================================
LOADING
==========================================================*/

.loading-overlay{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(15,23,42,.45);

    backdrop-filter:blur(4px);

    z-index:9999;

}

.loading-overlay.active{

    display:flex;

}

.loading-card{

    width:240px;

    padding:30px;

    border-radius:20px;

    background:#FFFFFF;

    box-shadow:0 20px 50px rgba(0,0,0,.20);

    text-align:center;

}

.loading-card p{

    margin-top:20px;

    color:#334155;

    font-weight:600;

}

.spinner{

    width:48px;

    height:48px;

    margin:auto;

    border:4px solid #E2E8F0;

    border-top-color:#1668B4;

    border-radius:50%;

    animation:spin .8s linear infinite;

}

/*==========================================================
TOAST
==========================================================*/

.toast{

    position:fixed;

    right:30px;

    bottom:30px;

    min-width:320px;

    padding:18px 22px;

    border-radius:14px;

    background:#1668B4;

    color:#FFFFFF;

    font-weight:600;

    box-shadow:0 15px 35px rgba(0,0,0,.20);

    transform:translateY(100px);

    opacity:0;

    transition:.35s;

    z-index:99999;

}

.toast.show{

    transform:translateY(0);

    opacity:1;

}

/*==========================================================
MODAL
==========================================================*/

.modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    padding:25px;

    background:rgba(15,23,42,.55);

    backdrop-filter:blur(4px);

    z-index:9999;

}

.modal.active{

    display:flex;

}

.modal-content{

    width:100%;

    max-width:480px;

    background:#FFFFFF;

    border-radius:22px;

    overflow:hidden;

    animation:fadeUp .35s ease;

}

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 26px;

    border-bottom:1px solid #E5EAF1;

}

.modal-header h3{

    font-size:20px;

    color:#0F172A;

}

.modal-header button{

    width:40px;

    height:40px;

    border:none;

    border-radius:10px;

    background:#F1F5F9;

    cursor:pointer;

    transition:.25s;

}

.modal-header button:hover{

    background:#E2E8F0;

}

.modal-body{

    padding:26px;

}

.modal-body p{

    margin-bottom:18px;

    color:#64748B;

    line-height:1.6;

}

.modal-body input{

    width:100%;

    height:52px;

    padding:0 18px;

    border:1px solid #D7DFE8;

    border-radius:12px;

    outline:none;

    transition:.25s;

}

.modal-body input:focus{

    border-color:#1668B4;

    box-shadow:0 0 0 4px rgba(22,104,180,.12);

}

.modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    padding:24px 26px;

    border-top:1px solid #E5EAF1;

}

.btn-cancelar,
.btn-confirmar{

    height:46px;

    padding:0 22px;

    border:none;

    border-radius:12px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.btn-cancelar{

    background:#E2E8F0;

    color:#334155;

}

.btn-cancelar:hover{

    background:#CBD5E1;

}

.btn-confirmar{

    background:#1668B4;

    color:#FFFFFF;

}

.btn-confirmar:hover{

    background:#0B4F8A;

}

/*==========================================================
ANIMAÇÕES
==========================================================*/

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes slideLeft{

    from{

        opacity:0;

        transform:translateX(-35px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

/*==========================================================
RESPONSIVO
==========================================================*/

@media (max-width:1100px){

    .login-panel{

        flex-direction:column;

        min-height:auto;

    }

    .login-left{

        display:none;

    }

    .right{

        flex:1;

        padding:40px 25px;

    }

}

@media (max-width:600px){

    .login-container{

        padding:15px;

    }

    .login-card{

        padding:30px 22px;

        border-radius:18px;

    }

    .login-logo img{

        width:140px;

    }

    .login-options{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

    }

    .login-footer{

        flex-direction:column;

        text-align:center;

    }

    .toast{

        left:15px;

        right:15px;

        min-width:auto;

    }

}
