@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
    --background: #0a4f6853;
    --cor_gerencie: #192E40FF;
    --cor_botoes: #147ce5;
    --cor_botoes_hover: #125fbe;
    --cor_texto_branco: #ffffff;
    --cor_texto_preto: #0f1f2c;
}

/* .dark-mode:root {
    --background: #3783ce;
    --background_container: #ae4e4e;
    --cor_gerencie: 1f3442;
} */

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

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--cor_texto_preto);
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 124, 229, 0.28), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(25, 46, 64, 0.3), transparent 40%),
        linear-gradient(140deg, #ecf5fb 0%, #dcecf6 100%);
}

body.login-loading::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 9998;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header.login-header {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background-color: var(--cor_gerencie);
    color: var(--cor_texto_branco);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.imgpinheiro {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.marca-gerencie {
    width: 145px;
    height: auto;
    margin-bottom: -10px;
}

.marca-web {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 42px;
    letter-spacing: 0.3px;
    line-height: 1;
}

.cards-container {
    flex: 1;
    width: min(1180px, 94%);
    margin: 24px auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 22px;
    align-items: stretch;
}

.info-gerencie {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #173347 0%, #2c5877 52%, #2f7098 100%);
    box-shadow: 0 22px 40px rgba(12, 38, 60, 0.28);
    padding: 42px;
    display: flex;
    align-items: flex-end;
    min-height: 450px;
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    top: -90px;
    right: -80px;
    background: radial-gradient(circle, rgba(130, 203, 255, 0.4) 0%, rgba(130, 203, 255, 0) 70%);
}

.info-image {
    position: absolute;
    right: -26px;
    bottom: -12px;
    width: min(56%, 430px);
    opacity: 0.22;
    mix-blend-mode: screen;
    filter: grayscale(10%);
    pointer-events: none;
}

.info-painel {
    position: relative;
    z-index: 2;
    max-width: 550px;
    color: #f7fbff;
    margin-bottom: 400px;
}

.info-painel h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.1;
    margin-bottom: 14px;
}

.info-painel p {
    font-size: 17px;
    line-height: 1.45;
    color: rgba(247, 251, 255, 0.9);
}

.formulario-login {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 20px 35px rgba(7, 31, 50, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.formulario-login h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 6px;
    color: #132b3c;
}

.login-subtitle {
    font-size: 14px;
    color: #4f6879;
    margin-bottom: 24px;
}

.loginForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login_input {
    position: relative;
}

.login_input input {
    width: 100%;
    height: 54px;
    padding: 18px 14px 8px;
    border: 1px solid #a9c2d8;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: #f8fcff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login_input span {
    position: absolute;
    left: 11px;
    top: 15px;
    pointer-events: none;
    color: #617b8f;
    background: transparent;
    padding: 0 4px;
    transition: transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
}

.login_input input:focus,
.login_input input:valid {
    border-color: #2678d2;
    box-shadow: 0 0 0 3px rgba(20, 124, 229, 0.15);
    outline: none;
}

.login_input input:focus ~ span,
.login_input input:valid ~ span {
    transform: translateY(-14px);
    font-size: 11px;
    color: #1a61b4;
    background: #f8fcff;
}

.botaoentrar {
    margin-top: 6px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--cor_botoes) 0%, #17539b 100%);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.botaoentrar:hover {
    background: linear-gradient(135deg, var(--cor_botoes_hover) 0%, #114985 100%);
    box-shadow: 0 8px 18px rgba(18, 95, 190, 0.35);
    transform: translateY(-1px);
}

.status-login {
    margin-top: 10px;
    font-size: 12px;
    color: #52708a;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0;
    z-index: 9999;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 980px) {
    .login-layout {
        grid-template-columns: 1fr;
        margin: 18px auto 26px;
    }

    .login-hero {
        min-height: 250px;
        padding: 28px;
    }

    .hero-copy h1 {
        font-size: clamp(26px, 5vw, 34px);
    }

    .hero-copy p {
        font-size: 15px;
    }
}

@media (max-width: 620px) {
    .header.login-header {
        padding: 10px 12px;
    }

    .imgpinheiro {
        width: 36px;
        height: 36px;
    }

    .brand-gerencie {
        width: 122px;
        margin-bottom: -8px;
    }

    .marca-web {
        font-size: 34px;
    }

    .formulario-login {
        padding: 26px 20px;
    }

    .formulario-login h2 {
        font-size: 28px;
    }
}