/* ==========================================
   INNOVATE ERP
   Login Premium
========================================== */

:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;

    --background:#071320;

    --glass:rgba(18,28,45,.45);

    --glass-border:rgba(255,255,255,.08);

    --text:#ffffff;

    --text-muted:#9ca3af;

    --shadow:0 30px 80px rgba(0,0,0,.45);

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    font-family:'Inter',sans-serif;

    background:#071320;

    overflow:hidden;

    color:white;

}

/*==========================
BACKGROUND
==========================*/

.background{

    position:fixed;

    inset:0;

    overflow:hidden;

    z-index:-2;

}

.gradient{

    position:absolute;

    inset:0;

    background:

    radial-gradient(circle at top left,#2563eb 0%,transparent 35%),

    radial-gradient(circle at bottom right,#0f172a 0%,transparent 45%),

    linear-gradient(135deg,#050b16,#071320,#0b1627);

}

.circle{

    position:absolute;

    border-radius:50%;

    filter:blur(100px);

    opacity:.35;

}

.circle1{

    width:420px;

    height:420px;

    background:#2563eb;

    top:-120px;

    left:-120px;

    animation:float 12s ease-in-out infinite;

}

.circle2{

    width:380px;

    height:380px;

    background:#0ea5e9;

    bottom:-100px;

    right:-80px;

    animation:float 15s ease-in-out infinite reverse;
}

.circle3{

    width:260px;

    height:260px;

    background:#1d4ed8;

    top:45%;

    left:60%;
    
    animation:float 18s ease-in-out infinite;
}

/*==========================
WRAPPER
==========================*/

.login-wrapper{

    width:100%;

    height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:30px;

}

/*==========================
CARD
==========================*/

.login-card{

    width:460px;

    padding:55px;

    border-radius:30px;

    background:rgba(12,22,36,.58);

    backdrop-filter:blur(24px);

    border:1px solid rgba(255,255,255,.10);

    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.05);

    animation:fadeUp .8s;

    transition:.35s;

}
.login-card:hover{

    transform:translateY(-3px);

    box-shadow:

        0 45px 100px rgba(0,0,0,.60),

        inset 0 1px 0 rgba(255,255,255,.08);

}

/*==========================
HEADER
==========================*/

.login-header{

    text-align:center;

    margin-bottom:40px;

}

.logo-icon{

    width:80px;

    height:80px;

    margin:auto;

    margin-bottom:20px;

    border-radius:50%;

    background:rgba(37,99,235,.15);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:34px;

    color:#60a5fa;
    
    box-shadow:

    0 0 40px rgba(37,99,235,.20);

}

.login-header h1{

    font-size:34px;

    font-weight:800;

    letter-spacing:3px;

}

.login-header h2{

    font-size:20px;

    color:#60a5fa;

    margin-top:5px;

}

.login-header p{

    margin-top:15px;

    color:var(--text-muted);

    font-size:14px;

}

/*==========================
FORM
==========================*/

label{

    color:#d1d5db;

    margin-bottom:8px;

    font-weight:500;

}

.input-group{

    border-radius:14px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    transition:.3s;

}

.input-group:focus-within{

    border-color:#2563eb;

    transform:translateY(-2px);

    box-shadow:

        0 0 0 4px rgba(37,99,235,.18),

        0 10px 25px rgba(37,99,235,.12);

}

.input-group-text{

    background:rgba(255,255,255,.05);

    border:none;

    color:#9ca3af;

}

.form-control{

    background:rgba(255,255,255,.03);

    border:none;

    color:white;

    padding:14px;

}

.form-control::placeholder{

    color:#64748b;

}

.form-control:focus{

    background:rgba(255,255,255,.05);

    color:white;

    box-shadow:none;

}

/*==========================
BOTÃO
==========================*/

.btn-login{

    width:100%;

    padding:16px;

    border:none;

    border-radius:15px;

    background:

        linear-gradient(

            135deg,

            #2563eb,

            #3b82f6

        );

    color:white;

    font-weight:700;

    transition:.35s;

}

.btn-login:hover{

    transform:translateY(-3px);

    box-shadow:

        0 18px 40px rgba(37,99,235,.45);

}

/*==========================
FOOTER
==========================*/

.login-footer{

    margin-top:35px;

    text-align:center;

    color:#64748b;

    font-size:13px;

}

/*==========================
AUTH OVERLAY
==========================*/

.auth-overlay{

    position:fixed;

    inset:0;

    background:rgba(5,10,20,.45);

    backdrop-filter:blur(10px);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.auth-card{

    width:380px;

    padding:45px;

    border-radius:24px;

    background:rgba(15,25,42,.65);

    backdrop-filter:blur(24px);

    border:1px solid rgba(255,255,255,.10);

    box-shadow:

        0 35px 90px rgba(0,0,0,.55);

}

.auth-icon{

    font-size:42px;

    color:#60a5fa;

    margin-bottom:20px;

}

.auth-card h4{

    font-weight:700;

}

.auth-card p{

    color:#9ca3af;

}

/*==========================
LOADER
==========================*/

.loader{

    margin:25px auto 0;

    width:55px;

    height:55px;

    border-radius:50%;

    border:4px solid rgba(255,255,255,.15);

    border-top:4px solid #3b82f6;

    animation:spin 1s linear infinite;

}

/*==========================
ANIMAÇÕES
==========================*/

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes float{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-20px);

    }

    100%{

        transform:translateY(0px);

    }

}

/* ===========================
   TRANSIÇÃO ENTRE PÁGINAS
=========================== */

body{

    opacity:0;

    transition:opacity .45s ease;

}

body.page-loaded{

    opacity:1;

}

body.page-leaving{

    opacity:0;

}

.login-card{

    opacity:0;

    transform:translateY(25px) scale(.98);

    transition:

        opacity .6s ease,

        transform .6s ease;

}

.login-card.show{

    opacity:1;

    transform:translateY(0) scale(1);

}

/* ==========================================
   RESPONSIVIDADE - MOBILE
========================================== */

@media (max-width: 576px) {

    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .login-wrapper {
        min-height: 100vh;
        height: auto;
        padding: 16px;
        align-items: center;
    }

    .login-card {
        width: 100%;
        max-width: 360px;
        padding: 28px 22px 20px;
        border-radius: 22px;
    }

    .login-card:hover {
        transform: none;
    }

    /* HEADER */

    .login-header {
        margin-bottom: 24px;
    }

    .logo-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 12px;
        font-size: 26px;
    }

    .login-header h1 {
        font-size: 27px;
        letter-spacing: 2px;
    }

    .login-header h2 {
        font-size: 17px;
        margin-top: 2px;
    }

    .login-header p {
        margin-top: 8px;
        font-size: 12px;
    }

    /* FORMULÁRIO */

    label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .login-body .mb-4 {
        margin-bottom: 16px !important;
    }

    .input-group {
        border-radius: 12px;
    }

    .input-group-text {
        padding: 10px 12px;
    }

    .form-control {
        padding: 11px 12px;
        font-size: 14px;
    }

    /* BOTÃO */

    .btn-login {
        padding: 12px;
        border-radius: 12px;
        font-size: 15px;
    }

    /* ALERTA */

    .alert {
        font-size: 13px;
        padding: 10px 12px;
        margin-bottom: 18px;
        border-radius: 10px;
    }

    /* RODAPÉ */

    .login-footer {
        margin-top: 20px;
        font-size: 11px;
    }

}


/* ==========================================
   MOBILE PEQUENO - iPhone SE
========================================== */

@media (max-width: 390px) {

    .login-wrapper {
        padding: 10px;
    }

    .login-card {
        max-width: 355px;
        padding: 24px 18px 16px;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .logo-icon {
        width: 52px;
        height: 52px;
        font-size: 23px;
        margin-bottom: 9px;
    }

    .login-header h1 {
        font-size: 25px;
    }

    .login-header h2 {
        font-size: 16px;
    }

    .login-header p {
        font-size: 11px;
        margin-top: 6px;
    }

    .login-body .mb-4 {
        margin-bottom: 14px !important;
    }

    .form-control {
        padding: 10px;
    }

    .btn-login {
        padding: 11px;
    }

    .login-footer {
        margin-top: 16px;
        font-size: 10px;
    }

}

.login-subtitle {
    margin-bottom: 0;
    line-height: 1.1;
}

.login-author {
    margin-top: 0;
    line-height: 1.1;

    color: #4f9cff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;

    text-shadow: 0 0 12px rgba(79, 156, 255, 0.25);
}