/* =========================================================
   VIPHONES IMPORTS
   LOGIN
   ========================================================= */

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

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

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f4f6fa;
    color: #321020;
}


/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */

.login-page {
    min-height: 100vh;
    width: 100%;

    display: grid;
    grid-template-columns: 46% 54%;

    overflow: hidden;
}


/* =========================================================
   LADO DA MARCA
   ========================================================= */

.login-brand {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 58px 64px;

    background:
        linear-gradient(
            145deg,
            #4d071f 0%,
            #65072b 45%,
            #81052f 100%
        );

    color: #ffffff;

    overflow: hidden;
}


/* brilho discreto */

.login-brand::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.035);

    pointer-events: none;
}


/* =========================================================
   CONTEÚDO DA MARCA
   ========================================================= */

.brand-content {
    position: relative;
    z-index: 2;

    max-width: 540px;
}


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

.brand-logo {
    width: 54px;
    height: 54px;

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

    border-radius: 50%;

    border: 1px solid rgba(226, 166, 52, 0.8);

    color: #f0c44f;

    font-size: 20px;
    font-weight: 700;

    margin-bottom: 16px;

    background: rgba(0, 0, 0, 0.12);
}


/* =========================================================
   NOME
   ========================================================= */

.brand-name {
    display: flex;
    flex-direction: column;

    gap: 4px;

    margin-bottom: 28px;
}

.brand-name strong {
    font-size: 18px;
    font-weight: 700;

    color: #ffffff;
}

.brand-name span {
    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.1px;

    color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   DIVISOR
   ========================================================= */

.brand-divider {
    width: 100%;
    max-width: 440px;

    height: 1px;

    background: rgba(255, 255, 255, 0.14);

    margin-bottom: 32px;
}


/* =========================================================
   TEXTO DA MARCA
   ========================================================= */

.brand-eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.6px;

    color: #e6b83f;
}

.brand-content h1 {
    margin-bottom: 18px;

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.05;

    letter-spacing: -1.5px;

    font-weight: 750;

    color: #ffffff;
}

.brand-content > p {
    max-width: 500px;

    margin-bottom: 32px;

    font-size: 15px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.76);
}


/* =========================================================
   BENEFÍCIOS
   ========================================================= */

.brand-features {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.brand-feature {
    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-feature > span {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

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

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.09);

    color: #e7bd4c;

    font-size: 14px;
    font-weight: 700;
}

.brand-feature div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.brand-feature strong {
    font-size: 13px;
    font-weight: 700;

    color: #ffffff;
}

.brand-feature small {
    font-size: 12px;

    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   RODAPÉ DA MARCA
   ========================================================= */

.brand-footer {
    position: relative;
    z-index: 2;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.42);

    letter-spacing: 0.2px;
}


/* =========================================================
   ÁREA DO LOGIN
   ========================================================= */

.login-area {
    min-height: 100vh;

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

    padding: 48px;

    background: #f4f7fb;
}


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

.login-card {
    width: 100%;
    max-width: 500px;
}


/* =========================================================
   MARCA MOBILE
   ========================================================= */

.mobile-brand {
    display: none;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

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

.login-eyebrow {
    display: block;

    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: #8b123a;
}

.login-header h2 {
    margin-bottom: 10px;

    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    color: #3d0d24;
}

.login-header p {
    max-width: 430px;

    font-size: 14px;

    line-height: 1.6;

    color: #64748b;
}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 650;

    color: #334155;
}

.form-group input {
    width: 100%;

    height: 54px;

    padding: 0 16px;

    border: 1px solid #d5dce6;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #1e293b;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:hover {
    border-color: #b9c3d0;
}

.form-group input:focus {
    border-color: #8b123a;

    box-shadow:
        0 0 0 3px rgba(139, 18, 58, 0.10);

    background: #ffffff;
}


/* =========================================================
   SENHA
   ========================================================= */

.password-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;

    right: 8px;

    height: 38px;

    padding: 0 12px;

    border: 0;

    border-radius: 7px;

    background: #f1f4f8;

    color: #475569;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.password-toggle:hover {
    background: #e6eaf0;

    color: #65072b;
}


/* =========================================================
   MENSAGENS
   ========================================================= */

.login-message {
    margin-bottom: 20px;

    padding: 12px 14px;

    border: 1px solid #fecaca;

    border-radius: 8px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 13px;

    line-height: 1.5;
}


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

.login-button {
    width: 100%;

    height: 54px;

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

    gap: 8px;

    margin-top: 8px;

    border: 0;

    border-radius: 10px;

    background: #c9003d;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(201, 0, 61, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background: #ad0035;

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(201, 0, 61, 0.22);
}

.login-button:active {
    transform: translateY(0);
}

.login-button span {
    font-size: 17px;

    transition: transform 0.2s ease;
}

.login-button:hover span {
    transform: translateX(3px);
}


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

.login-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 20px;

    font-size: 13px;
}

.login-links a {
    color: #7d1036;

    text-decoration: none;

    font-weight: 600;
}

.login-links a:hover {
    color: #c9003d;

    text-decoration: underline;
}

.login-links span {
    color: #cbd5e1;
}


/* =========================================================
   AVISO DE SEGURANÇA
   ========================================================= */

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 28px;

    color: #64748b;

    font-size: 11px;
}

.security-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #16a34a;

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.10);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .login-page {
        grid-template-columns: 42% 58%;
    }

    .login-brand {
        padding: 48px 40px;
    }

    .login-area {
        padding: 40px;
    }

    .brand-content h1 {
        font-size: 42px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    body {
        background: #f4f7fb;
    }

    .login-page {
        display: block;

        min-height: 100vh;
    }


    /* -----------------------------------------------------
       ESCONDE PAINEL ESQUERDO
       ----------------------------------------------------- */

    .login-brand {
        display: none;
    }


    /* -----------------------------------------------------
       ÁREA DO LOGIN
       ----------------------------------------------------- */

    .login-area {
        min-height: 100vh;

        padding: 28px 20px 36px;

        align-items: flex-start;
    }


    .login-card {
        max-width: 520px;

        margin: 0 auto;
    }


    /* -----------------------------------------------------
       MARCA MOBILE
       ----------------------------------------------------- */

    .mobile-brand {
        display: flex;

        align-items: center;

        gap: 12px;

        margin-bottom: 44px;
    }

    .mobile-brand .brand-logo {
        width: 46px;
        height: 46px;

        margin: 0;

        font-size: 17px;

        background: #65072b;
    }

    .mobile-brand > div:last-child {
        display: flex;
        flex-direction: column;

        gap: 2px;
    }

    .mobile-brand strong {
        font-size: 15px;

        color: #3d0d24;
    }

    .mobile-brand span {
        font-size: 10px;

        letter-spacing: 0.8px;

        color: #64748b;
    }


    /* -----------------------------------------------------
       CABEÇALHO
       ----------------------------------------------------- */

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

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


    /* -----------------------------------------------------
       CAMPOS
       ----------------------------------------------------- */

    .form-group input {
        height: 52px;
    }


    /* -----------------------------------------------------
       LINKS
       ----------------------------------------------------- */

    .login-links {
        flex-wrap: wrap;

        text-align: center;
    }

}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 420px) {

    .login-area {
        padding: 22px 16px 30px;
    }

    .mobile-brand {
        margin-bottom: 36px;
    }

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

    .login-header p {
        font-size: 13px;
    }

    .login-links {
        flex-direction: column;

        gap: 6px;
    }

    .login-links span {
        display: none;
    }

}

.brand-logo img {
    max-width: 82%;
    max-height: 82%;
    width: auto;
    height: auto;
    object-fit: contain;
}
