/* ===== RESET BÁSICO ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #efe3e9;
    color: #333;
}

/* ===== ACESSIBILIDADE (LABEL VISUALMENTE OCULTO) ===== */
.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    position: absolute;
}

/* ===== BACKGROUND EM DUAS CORES ===== */
/* Agora centraliza o conteúdo vertical e horizontalmente */
.page-background {
    min-height: 100vh;
    background-image: url("../images/bg_tela-login.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* ===== WRAPPER DO LOGIN ===== */
.login-wrapper {
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: center;
}

/* ===== CARD CENTRAL ===== */
.login-card {
    background-color: rgba(255, 255, 255, 0.50); /* 75% de visibilidade */
    border-radius: 32px;
    padding: 64px 96px 56px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    max-width: 720px;
    width: 100%;
    text-align: center;
    /* garante que nunca passe muito da tela em monitores menores */
    max-height: 90vh;
    overflow-y: auto;
}

/* LOGO + NOME */
.logo-area {
    margin-bottom: 60px;
}

.logo {
    max-width: 140px;
    height: auto;
}

.app-name {
    font-size: 32px;
    font-weight: 600;
    color: #035f30;
    margin-bottom: 32px;
}

/* ===== FORM ===== */
.login-form {
    max-width: 460px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
}

/* Inputs estilo “pill” */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid #d6d6d6;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: #fafafa;
}

.login-form input::placeholder {
    color: #9d9d9d;
}

.login-form input:focus {
    border-color: #035f30;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(33, 169, 219, 0.18);
}

/* ===== BOTÕES ===== */
.btn-primary {
    margin-top: 12px;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background-color: #035f30;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(33, 169, 219, 0.35);
}

    .btn-primary:hover {
        background-color: #1891bf;
        box-shadow: 0 10px 20px rgba(33, 169, 219, 0.45);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 6px 14px rgba(33, 169, 219, 0.35);
    }

.link-button {
    margin-top: 12px;
    background: transparent;
    border: none;
    color: #035f30;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.1s ease;
}

    .link-button:hover {
        color: #147ea2;
        text-decoration: underline;
    }

/* ===== BOTÃO FLUTUANTE DE SUPORTE ===== */
.support-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 14px;
    background-color: #035f30;
    color: #ffffff;
    border: none;
    border-radius: 24px 24px 0 24px; /* cantos arredondados, exceto inferior direito */
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

    .support-button:hover {
        background-color: #1891bf;
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

.support-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Deixa o SVG branco usando filtro */
.support-button img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.support-text {
    white-space: nowrap;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets e notebooks menores */
@media (max-width: 900px) {
    .page-background {
        padding: 24px 12px;
        background: linear-gradient( to bottom, #035f30 0%, #035f30 28%, #efe3e9 28%, #efe3e9 100% );
    }

    .login-card {
        padding: 40px 32px 32px;
        border-radius: 24px;
        max-height: 88vh;
    }

    .app-name {
        font-size: 26px;
        margin-bottom: 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .page-background {
        padding: 16px 10px;
        background: linear-gradient( to bottom, #035f30 0%, #035f30 34%, #efe3e9 34%, #efe3e9 100% );
    }

    .login-card {
        padding: 28px 20px 24px;
        border-radius: 20px;
        max-height: 92vh;
    }

    .logo {
        max-width: 110px;
    }

    .app-name {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        padding: 10px 16px;
        font-size: 15px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 15px;
    }

    .link-button {
        font-size: 14px;
    }

    .support-button {
        padding: 8px 14px 8px 12px;
        right: 16px;
        bottom: 16px;
        font-size: 14px;
    }

        .support-button img {
            width: 20px;
            height: 20px;
        }
}
