/* =========================================
   ROOT
========================================= */

:root{

    --primary:#ff8c00;
    --primary-light:#ffb347;

    --bg-dark:#050505;
    --bg-secondary:#0d0d0d;
    --bg-card:#111111;

    --text:#ffffff;
    --text-soft:#9f9f9f;

    --border:rgba(255,255,255,0.08);

    --radius:22px;

    --transition:.25s ease;
}

/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
}

/* =========================================
   BODY
========================================= */

body.page-login{

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

    min-height:100dvh;

    background:
        radial-gradient(circle at top left, rgba(255,140,0,0.18), transparent 25%),
        radial-gradient(circle at bottom right, rgba(255,102,0,0.10), transparent 30%),
        linear-gradient(135deg, #050505, #111111);

    background-attachment:fixed;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:30px;

    overflow-x:hidden;

    position:relative;

    color:var(--text);
}

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

body.page-login::before{

    content:'';

    position:absolute;

    width:500px;
    height:500px;

    background:rgba(255,140,0,0.08);

    filter:blur(130px);

    top:-180px;
    left:-180px;

    border-radius:50%;
}

body.page-login::after{

    content:'';

    position:absolute;

    width:450px;
    height:450px;

    background:rgba(255,102,0,0.06);

    filter:blur(130px);

    bottom:-180px;
    right:-180px;

    border-radius:50%;
}

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

.login-wrapper{

    width:100%;
    max-width:460px;

    position:relative;

    z-index:2;
}

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

.card-login{

    width:100%;

    background:
        linear-gradient(
            180deg,
            rgba(18,18,18,0.96),
            rgba(10,10,10,0.95)
        );

    border:1px solid var(--border);

    border-radius:26px;

    padding:45px 38px;

    backdrop-filter:blur(18px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.50);

    animation:fadeUp .5s ease;
}

/* =========================================
   ANIMATION
========================================= */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

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

.login-header{

    text-align:center;

    margin-bottom:35px;
}

/* =========================================
   LOGO
========================================= */

.logo-box{

    width:105px;
    height:105px;

    margin:0 auto 22px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            rgba(35,35,35,0.95),
            rgba(15,15,15,0.95)
        );

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,0.05);

    box-shadow:
        inset 0 0 20px rgba(255,140,0,0.04),
        0 10px 25px rgba(0,0,0,0.35);
}

.logo-box img{

    width:64px;
    height:64px;

    object-fit:contain;
}

/* =========================================
   TITLES
========================================= */

.system-name{

    font-size:32px;

    font-weight:800;

    letter-spacing:.5px;

    background:
        linear-gradient(
            135deg,
            #ffd28c,
            #ff8c00
        );

    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    margin-bottom:10px;
}

.system-desc{

    font-size:13px;

    color:#8f8f8f;

    line-height:1.7;

    max-width:280px;

    margin:0 auto;
}

/* =========================================
   ALERT
========================================= */

.error-message{

    background:rgba(255,77,77,0.10);

    border:1px solid rgba(255,77,77,0.30);

    color:#ff9a9a;

    padding:14px 16px;

    border-radius:16px;

    margin-bottom:24px;

    font-size:13px;

    display:flex;
    align-items:center;
    gap:10px;
}

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

form{
    width:100%;
}

.form-group{

    margin-bottom:22px;
}

.form-label{

    display:block;

    margin-bottom:10px;

    font-size:13px;
    font-weight:600;

    color:#d5d5d5;
}

/* =========================================
   INPUT GROUP
========================================= */

.input-group{

    position:relative;
}

/* =========================================
   INPUT ICON
========================================= */

.input-icon{

    position:absolute;

    top:50%;
    left:18px;

    transform:translateY(-50%);

    color:#666;

    font-size:14px;

    transition:var(--transition);

    pointer-events:none;
}

/* =========================================
   INPUTS
========================================= */

.form-input{

    width:100%;

    height:56px;

    padding:0 18px 0 52px;

    border-radius:16px;

    border:1px solid rgba(255,255,255,0.06);

    background:#0d0d0d;

    color:#fff;

    font-size:14px;

    outline:none;

    transition:var(--transition);
}

.form-input::placeholder{

    color:#757575;
}

.form-input:focus{

    border-color:var(--primary);

    background:#101010;

    box-shadow:
        0 0 0 3px rgba(255,140,0,0.10);
}

.input-group:focus-within .input-icon{

    color:var(--primary);
}

/* =========================================
   PASSWORD BUTTON
========================================= */

.toggle-password{

    position:absolute;

    top:50%;
    right:16px;

    transform:translateY(-50%);

    background:none;

    border:none;

    color:#777;

    cursor:pointer;

    font-size:14px;

    transition:var(--transition);
}

.toggle-password:hover{

    color:var(--primary);
}

/* =========================================
   OPTIONS
========================================= */

.login-options{

    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-top:-4px;
    margin-bottom:25px;

    gap:10px;

    flex-wrap:wrap;
}

.remember-me{

    display:flex;
    align-items:center;

    gap:8px;

    font-size:13px;

    color:#b5b5b5;
}

.remember-me input{

    accent-color:var(--primary);

    width:15px;
    height:15px;
}

/* =========================================
   LINKS
========================================= */

.forgot-link{

    color:#9f9f9f !important;

    text-decoration:none !important;

    font-size:13px;

    transition:var(--transition);
}

.forgot-link:hover{

    color:var(--primary);

    text-decoration:none;
}

/* =========================================
   BUTTON LOGIN
========================================= */

.btn-login{

    width:100%;

    height:56px;

    border:none;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            #ff9f1a,
            #ff7b00
        );

    color:#111;

    font-size:13px;
    font-weight:800;

    letter-spacing:1.2px;

    cursor:pointer;

    transition:var(--transition);

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    box-shadow:
        0 12px 30px rgba(255,140,0,0.22);
}

.btn-login:hover{

    transform:translateY(-2px);

    filter:brightness(1.05);
}

.btn-login:active{

    transform:scale(.99);
}

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

.login-footer{

    margin-top:30px;

    text-align:center;
}

.footer-divider{

    width:100%;
    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.08),
            transparent
        );

    margin-bottom:22px;
}

.footer-title{

    color:#7f7f7f;

    font-size:12px;

    margin-bottom:16px;

    letter-spacing:.5px;
}

/* =========================================
   SECURITY INFO
========================================= */

.security-info{

    display:flex;
    flex-direction:column;

    gap:10px;
}

.security-item{

    display:flex;
    align-items:center;
    justify-content:center;

    gap:10px;

    font-size:13px;

    color:#cfcfcf;
}

.security-item i{

    color:var(--primary);

    font-size:14px;
}

/* =========================================
   VERSION
========================================= */

.version{

    margin-top:18px;

    color:#555;

    font-size:12px;
}

/* =========================================
   SUPPORT PAGE
========================================= */

body.page-login-suporte::before,
body.page-login-suporte::after{

    pointer-events:none;

    z-index:0;
}

.page-login-suporte .login-wrapper{

    width:100%;
    max-width:460px;

    position:relative;

    z-index:2;
}

.page-login-suporte .card-login{

    position:relative;

    z-index:2;
}

/* =========================================
   SUPPORT CONTENT
========================================= */

.support-content{

    margin-top:10px;
}

/* =========================================
   MESSAGE
========================================= */

.support-message{

    text-align:center;

    margin-bottom:28px;
}

.support-icon{

    width:72px;
    height:72px;

    margin:0 auto 18px;

    border-radius:22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,140,0,0.12),
            rgba(255,140,0,0.04)
        );

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,140,0,0.15);

    box-shadow:
        inset 0 0 20px rgba(255,140,0,0.04),
        0 10px 25px rgba(0,0,0,0.20);
}

.support-icon i{

    font-size:28px;

    color:var(--primary);
}

.support-title{

    font-size:20px;

    font-weight:700;

    color:#fff;

    margin-bottom:10px;
}

.support-text{

    color:#a5a5a5;

    line-height:1.8;

    font-size:14px;

    max-width:320px;

    margin:0 auto;
}

/* =========================================
   SUPPORT BOX
========================================= */

.support-info-box{

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.01)
        );

    border:1px solid rgba(255,255,255,0.06);

    border-radius:22px;

    padding:24px;

    margin-bottom:28px;

    backdrop-filter:blur(10px);
}

.support-item{

    display:flex;
    align-items:center;

    gap:16px;

    padding:14px 0;
}

.support-item:not(:last-child){

    border-bottom:1px solid rgba(255,255,255,0.05);
}

.support-item-icon{

    width:46px;
    height:46px;

    border-radius:14px;

    background:rgba(255,140,0,0.08);

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;
}

.support-item-icon i{

    color:var(--primary);

    font-size:18px;
}

.support-item-text{

    display:flex;
    flex-direction:column;
}

.support-label{

    font-size:12px;

    color:#7f7f7f;

    margin-bottom:4px;
}

.support-item-text strong{

    color:#f2f2f2;

    font-size:14px;

    font-weight:600;

    line-height:1.5;
}

/* =========================================
   WHATSAPP BUTTON
========================================= */

.btn-whatsapp{

    width:100%;

    min-height:58px;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #25d366,
            #1da851
        );

    display:flex;
    align-items:center;
    justify-content:center;

    gap:12px;

    text-decoration:none;

    color:#fff !important;

    font-size:14px;
    font-weight:800;

    letter-spacing:1px;

    transition:.30s ease;

    box-shadow:
        0 15px 30px rgba(37,211,102,0.20);

    position:relative;

    z-index:5;
}

.btn-whatsapp:hover{

    transform:translateY(-2px);

    box-shadow:
        0 20px 40px rgba(37,211,102,0.30);
}

.btn-whatsapp i{

    font-size:20px;
}

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

.back-login{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:8px;

    color:#9a9a9a;

    text-decoration:none;

    font-size:13px;

    transition:.25s ease;

    position:relative;

    z-index:5;
}

.back-login:hover{

    color:var(--primary-light);
}

.footer-divider{

    width:100%;
    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.08),
            transparent
        );

    margin-bottom:20px;
}

/* =========================================
   MOBILE RESPONSIVO REAL
========================================= */

@media screen and (max-width:520px){

    html,
    body{

        width:100%;
        overflow-x:hidden;
    }

    body.page-login{

        padding:12px;

        align-items:flex-start;

        justify-content:flex-start;

        min-height:100dvh;
    }

    .login-wrapper{

        

       
        margin:auto;
    }

    .card-login{

        width:100%;

        max-width:100%;

        padding:28px 18px;

        border-radius:22px;
    }

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

    .login-header{

        margin-bottom:24px;
    }

    .logo-box{

        width:78px;
        height:78px;

        border-radius:18px;

        margin-bottom:16px;
    }

    .logo-box img{

        width:46px;
        height:46px;
    }

    .system-name{

        font-size:24px;

        line-height:1.2;
    }

    .system-desc{

        font-size:12px;

        line-height:1.6;

        max-width:100%;
    }

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

    .form-group{

        margin-bottom:16px;
    }

    .form-input{

        height:52px;

        font-size:16px;

        border-radius:14px;

        padding-left:46px;
    }

    .input-icon{

        left:15px;
    }

    /* =========================
       OPTIONS
    ========================= */

    .login-options{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;
    }

    /* =========================
       BOTÕES
    ========================= */

    .btn-login,
    .btn-whatsapp{

        width:100%;

        height:52px;

        font-size:12px;

        letter-spacing:.8px;

        border-radius:14px;
    }

    /* =========================
       SUPORTE
    ========================= */

    .support-message{

        margin-bottom:22px;
    }

    .support-icon{

        width:58px;
        height:58px;

        border-radius:16px;
    }

    .support-icon i{

        font-size:22px;
    }

    .support-title{

        font-size:17px;

        line-height:1.4;
    }

    .support-text{

        font-size:12px;

        line-height:1.7;
    }

    .support-info-box{

        padding:16px;

        border-radius:18px;
    }

    .support-item{

        gap:10px;

        align-items:flex-start;
    }

    .support-item-icon{

        width:38px;
        height:38px;

        border-radius:12px;
    }

    .support-item-icon i{

        font-size:15px;
    }

    .support-item-text{

        width:100%;
    }

    .support-item-text strong{

        font-size:12px;

        line-height:1.5;

        word-break:break-word;
    }

    .support-label{

        font-size:11px;
    }

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

    .login-footer{

        margin-top:22px;
    }

    .back-login{

        font-size:12px;
    }

    .version{

        font-size:11px;
    }
}