﻿
/* ==========================================
   PIMEL GPS TRACKING
   IDENTIDADE VISUAL - TELA DE LOGIN
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #03101d;
    color: #ffffff;
}

/* FUNDO PRINCIPAL */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(0, 8, 18, 0.08), rgba(0, 8, 18, 0.30)), url('/imagens/login-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* LOGOMARCA */

.brand-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.brand-logo {
    width: min(85%, 650px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.65));
    animation: logoEntrada 1.2s ease;
}

.brand-description {
    margin-top: 24px;
    color: #f5a000;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 0 12px rgba(255,132,0,.55);
}

/* ÁREA DE LOGIN */

.login-area {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px;
    gap: 35px;
}

/* PAINEL TRANSPARENTE */

.login-card {
    width: min(100%, 520px);
    padding: 42px;
    border-radius: 28px;
    background: rgba(2, 17, 32, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,153,0,.75);
    box-shadow: 0 0 15px rgba(255,136,0,.22), 0 0 45px rgba(255,136,0,.12), inset 0 0 25px rgba(255,255,255,.025);
    position: relative;
    animation: painelEntrada .9s ease;
}

    /* LINHAS LUMINOSAS */

    .login-card::before,
    .login-card::after {
        content: "";
        position: absolute;
        left: 12%;
        width: 76%;
        height: 2px;
        background: linear-gradient( 90deg, transparent, #ff8c00, #ffdb70, #ff8c00, transparent );
        box-shadow: 0 0 12px #ff9500;
    }

    .login-card::before {
        top: 0;
    }

    .login-card::after {
        bottom: 0;
    }

    /* TÍTULO */

    .login-card h1 {
        text-align: center;
        font-size: clamp(23px, 2.2vw, 32px);
        font-weight: 700;
        margin-bottom: 22px;
        text-shadow: 0 0 12px rgba(255,255,255,.2);
    }

.lock-icon {
    margin-right: 10px;
    color: #ff9900;
}

/* DIVISOR LUMINOSO */

.orange-divider {
    height: 2px;
    width: 65%;
    margin: 0 auto 32px;
    background: linear-gradient( 90deg, transparent, #ff8c00, #ffd166, #ff8c00, transparent );
    box-shadow: 0 0 12px #ff9500;
}

/* CAMPOS DE ENTRADA */

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
    height: 62px;
    margin-bottom: 22px;
    background: linear-gradient( 135deg, rgba(38,59,80,.96), rgba(17,35,53,.96) );
    border: 1px solid rgba(142,174,203,.7);
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,.25), 0 4px 12px rgba(0,0,0,.2);
    transition: all .3s ease;
}

    .input-group:focus-within {
        border-color: #ff9900;
        box-shadow: 0 0 10px rgba(255,153,0,.45), inset 0 0 8px rgba(255,153,0,.08);
    }

.input-icon {
    font-size: 23px;
    padding: 0 17px;
}

.input-group input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 18px;
    padding-right: 15px;
}

    .input-group input::placeholder {
        color: #c3ceda;
    }

/* OPÇÕES DO LOGIN */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 25px 0 30px;
    font-size: 15px;
}

    .login-options label {
        display: flex;
        align-items: center;
        gap: 9px;
        cursor: pointer;
    }

    .login-options input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #ff9500;
        cursor: pointer;
    }

    .login-options a {
        color: #ff9d00;
        font-weight: 700;
        text-decoration: underline;
        transition: color .3s ease;
    }

        .login-options a:hover {
            color: #ffd166;
        }

/* BOTÃO ENTRAR */

.login-button {
    width: 100%;
    min-height: 65px;
    border: none;
    border-radius: 16px;
    background: linear-gradient( 110deg, #ffb000, #ff7900, #ff9900 );
    color: white;
    font-size: 23px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(255,132,0,.35), inset 0 1px 2px rgba(255,255,255,.35);
    transition: all .3s ease;
}

    .login-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(255,132,0,.65), 0 0 20px rgba(255,165,0,.4);
        filter: brightness(1.12);
    }

    .login-button:active {
        transform: translateY(0);
    }

/* RODAPÉ */

.login-area footer {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 8px #000;
}

/* ANIMAÇÕES */

@keyframes painelEntrada {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoEntrada {
    from {
        opacity: 0;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* TELEMÓVEIS */

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
        padding: 25px 15px;
    }

    .brand-area {
        padding: 20px 10px 5px;
    }

    .brand-logo {
        width: min(75%, 380px);
    }

    .brand-description {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .login-area {
        min-height: auto;
        padding: 20px 5px 30px;
    }

    .login-card {
        max-width: 480px;
        padding: 30px 22px;
    }
}

@media (max-width: 420px) {
    .login-card {
        padding: 25px 17px;
    }

    .login-options {
        font-size: 13px;
    }

    .input-group {
        height: 56px;
    }

    .login-button {
        min-height: 58px;
    }
}
/* CAMPOS DE EMAIL E SENHA */
.input-group input {
    background-color: #172c3d !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 15px;
    padding: 0 18px !important;
    border: 1px solid #526b80;
    border-radius: 0 8px 8px 0;
    outline: none;
    box-sizing: border-box;
}

    /* CORRIGIR PREENCHIMENTO AUTOMÁTICO DO CHROME */
    .input-group input:-webkit-autofill,
    .input-group input:-webkit-autofill:hover,
    .input-group input:-webkit-autofill:focus {
        -webkit-text-fill-color: #ffffff !important;
        caret-color: #ffffff;
        -webkit-box-shadow: 0 0 0 1000px #172c3d inset !important;
        box-shadow: 0 0 0 1000px #172c3d inset !important;
        transition: background-color 9999s ease-in-out 0s;
    }

    /* COR DO TEXTO DIGITADO */
    .input-group input::placeholder {
        color: #b9c8d5;
        opacity: 1;
    }