/* ==============================================
   GERENCIADOR DE PROCESSOS | LUMMA
   TELA DE LOGIN
   Identidade visual aprovada
============================================== */

/* CORES PRINCIPAIS */
:root {
    --azul-profundo: #082e49;
    --azul-medio: #165b86;
    --azul-texto: #123954;
    --texto-secundario: #647487;
    --borda-campo: #b9cbd7;
    --vinho-cliente: #690b2e;
    --branco: #fff;
}

/* CONFIGURAÇÕES GERAIS */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.pagina-login {
    margin: 0;
    min-height: 100vh;

    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;

    color: var(--azul-texto);

    /* Fundo com gradientes suaves */
    background:
        radial-gradient(ellipse at 93% 9%,
            rgba(84, 166, 198, 0.37),
            transparent 48%),
        radial-gradient(ellipse at 4% 98%,
            rgba(60, 152, 190, 0.26),
            transparent 48%),
        linear-gradient(118deg,
            #fcfcfd 6%,
            #f2f7fa 52%,
            #d8eef6 100%);

    overflow-x: hidden;
}

/* ==============================================
   ELEMENTOS DECORATIVOS DO FUNDO
   Criados com CSS, sem necessidade de imagens
============================================== */

.pagina-login::before,
.pagina-login::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

/* Onda inferior */
.pagina-login::before {
    width: 120vw;
    height: 47vh;
    left: -17vw;
    bottom: -24vh;

    border-radius: 50% 80% 0 0;
    transform: rotate(7deg);

    background: linear-gradient(90deg,
            rgba(49, 139, 179, .44),
            rgba(223, 243, 251, .2));
}

/* Forma superior direita */
.pagina-login::after {
    width: 90vw;
    height: 45vh;
    right: -40vw;
    top: -32vh;

    border-radius: 50%;

    background: rgba(114, 186, 212, .21);
}

/* ==============================================
   CONTAINER PRINCIPAL
   Duas colunas: identidade + formulário
============================================== */

.login-layout {
    position: relative;
    z-index: 1;

    min-height: 100vh;
    width: min(1320px, 100%);

    margin: 0 auto;
    padding: 48px clamp(24px, 5vw, 70px);

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(400px, 0.96fr);

    gap: clamp(40px, 5vw, 96px);
    align-items: center;
}

/* ==============================================
   COLUNA ESQUERDA: IDENTIDADE LUMMA
============================================== */

.apresentacao {
    min-width: 0;
}

.logo-lumma {
    display: block;
    width: min(100%, 570px);
    height: auto;
}

.apresentacao-conteudo {
    margin-top: 38px;
}

/* Pequena linha decorativa */
.traco-decorativo {
    display: block;

    width: 64px;
    height: 3px;

    border-radius: 10px;
    background: #78a9c0;

    margin-bottom: 23px;
}

/* Nome do produto */
.apresentacao h1 {
    margin: 0 0 38px;

    font-size: clamp(30px, 3vw, 45px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -1px;

    color: var(--azul-profundo);
}

/* Identificação do escritório */
.ambiente-cliente {
    display: flex;
    align-items: center;

    width: fit-content;
    max-width: 100%;
    min-height: 74px;

    gap: 21px;
    padding: 10px 20px;

    border-radius: 18px;
    background: rgba(218, 222, 229, .42);
}

.ambiente-cliente>span:first-child {
    font-size: 16px;
    color: #495d6d;
    white-space: nowrap;
}

.divisoria-cliente {
    width: 1px;
    align-self: stretch;
    background: #b9c7d1;
}

.ambiente-cliente img {
    display: block;

    width: 190px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}

/* ==============================================
   COLUNA DIREITA: CARTÃO DE LOGIN
============================================== */

.acesso {
    width: 100%;
}

.cartao-login {
    padding:
        clamp(32px, 4.4vw, 66px) clamp(25px, 4.3vw, 64px) 38px;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 24px;

    /* Efeito de vidro suave */
    background: rgba(255, 255, 255, .72);

    box-shadow:
        0 20px 56px rgba(24, 69, 99, .14);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Título e subtítulo */
.cabecalho-login h2 {
    margin: 0;

    color: var(--azul-profundo);

    font-size: clamp(27px, 2.5vw, 36px);
    font-weight: 600;
    letter-spacing: -.8px;
}

.cabecalho-login p {
    margin: 12px 0 40px;

    font-size: 16px;
    color: var(--texto-secundario);
}

/* ==============================================
   CAMPOS DO FORMULÁRIO
============================================== */

.grupo-campo {
    margin-bottom: 28px;
}

.grupo-campo label {
    display: flex;
    align-items: center;

    gap: 12px;
    margin-bottom: 13px;

    font-size: 16px;
    font-weight: 500;

    color: #203b52;
}

/* Ícones dos campos */
.grupo-campo label svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: var(--azul-medio);
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Aparência padrão dos inputs */
.grupo-campo input {
    width: 100%;
    height: 55px;

    border: 1.5px solid var(--borda-campo);
    border-radius: 11px;

    outline: 0;
    padding: 0 19px;

    font: inherit;
    font-size: 16px;

    background: rgba(255, 255, 255, .55);
    color: #173e5b;

    transition:
        border-color .15s,
        box-shadow .15s;
}

.grupo-campo input::placeholder {
    color: #82909e;
}

/* Destaque quando o campo recebe foco */
.grupo-campo input:focus-visible {
    border-color: #2879a7;

    box-shadow:
        0 0 0 4px rgba(51, 142, 184, .13);
}

/* ==============================================
   CAMPO DE SENHA
============================================== */

.campo-senha {
    position: relative;
}

/* Reserva espaço para o ícone de visualizar senha */
.campo-senha input {
    padding-right: 61px;
}

.botao-olho {
    position: absolute;

    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border: 0;
    background: transparent;

    color: #697c8a;
    cursor: pointer;
}

.botao-olho svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.botao-olho:focus-visible {
    outline: 2px solid var(--azul-medio);
    border-radius: 7px;
}

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

.botao-entrar {
    width: 100%;
    min-height: 66px;

    margin-top: 11px;

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

    gap: 18px;

    border: 0;
    border-radius: 12px;

    color: var(--branco);

    font: inherit;
    font-size: 22px;
    font-weight: 600;

    cursor: pointer;

    background: linear-gradient(105deg,
            #156393 0%,
            #06314e 100%);

    box-shadow:
        0 10px 20px rgba(3, 53, 86, .18);

    transition:
        filter .15s,
        transform .15s;
}

/* Interação visual do botão */
.botao-entrar:hover {
    filter: brightness(1.08);
}

.botao-entrar:active {
    transform: translateY(1px);
}

.botao-entrar:focus-visible {
    outline: 3px solid #76b6d4;
    outline-offset: 3px;
}

.botao-entrar svg {
    width: 23px;
    height: 23px;

    stroke: currentColor;
    fill: none;
    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==============================================
   MENSAGENS DO LOGIN
   Futuramente serão controladas pelo JavaScript
============================================== */

.mensagem-login {
    min-height: 20px;
    margin: 11px 0 0;

    color: #a4263f;
    font-size: 14px;
}

/* ==============================================
   RODAPÉ DO FORMULÁRIO
============================================== */

.rodape-login {
    display: flex;
    align-items: center;

    gap: 17px;

    border-top: 1px solid #d9e2e8;

    margin-top: 25px;
    padding-top: 25px;

    color: #65788a;
}

.rodape-login svg {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    fill: none;
    stroke: #8a9dab;
    stroke-width: 1.4;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.rodape-login p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

/* ==============================================
   RESPONSIVIDADE
   Em telas menores, as colunas são empilhadas
============================================== */

@media (max-width: 960px) {

    .login-layout {
        grid-template-columns: 1fr;

        gap: 38px;
        max-width: 650px;

        padding-top: 45px;
        padding-bottom: 45px;
    }

    .apresentacao {
        text-align: center;
    }

    .logo-lumma {
        width: min(100%, 410px);
        margin: 0 auto;
    }

    .apresentacao-conteudo {
        margin-top: 22px;
    }

    .traco-decorativo {
        margin: 0 auto 17px;
    }

    .apresentacao h1 {
        margin-bottom: 22px;
    }

    .ambiente-cliente {
        margin: 0 auto;
    }
}

/* Celulares */
@media (max-width: 560px) {

    .login-layout {
        padding: 24px 17px;
        gap: 26px;
    }

    .cartao-login {
        padding: 30px 23px 24px;
        border-radius: 19px;
    }

    .cabecalho-login p {
        margin-bottom: 29px;
    }

    .apresentacao h1 {
        font-size: 29px;
    }

    .ambiente-cliente {
        gap: 12px;
        padding: 11px;
    }

    .ambiente-cliente>span:first-child {
        font-size: 12px;
        white-space: normal;
    }

    .ambiente-cliente img {
        width: 145px;
    }

    .botao-entrar {
        min-height: 57px;
        font-size: 19px;
    }
}