/*
==========================================================
ERP LOBO TECNOLOGIA - LOGIN
==========================================================

Arquivo:
assets/css/index.css

Responsabilidade:
Controlar todo o design da tela pública de login do ERP.

Objetivos visuais:
- Interface moderna e profissional;
- Identidade visual preta/cinza da Lobo Tecnologia;
- Logo em destaque;
- Layout dividido no desktop;
- Formulário limpo e confortável;
- Boa adaptação para tablets e celulares.

Este arquivo não interfere nas páginas internas do ERP.

==========================================================
*/


/* ==========================================================
RESET / BASE
========================================================== */

* {
    box-sizing: border-box;
}

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

body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), transparent 28%),
        #eceff1;
    color: #161616;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font-family: inherit;
}


/* ==========================================================
PÁGINA
========================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-shell {
    width: 100%;
    max-width: 1180px;
    min-height: 680px;

    display: grid;
    grid-template-columns: 1.08fr 0.92fr;

    background: #ffffff;

    border-radius: 26px;
    overflow: hidden;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.14),
        0 4px 14px rgba(0, 0, 0, 0.05);
}


/* ==========================================================
PAINEL INSTITUCIONAL
========================================================== */

.login-brand-panel {
    position: relative;

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

    min-height: 680px;
    padding: 58px;

    color: #ffffff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.13), transparent 27%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.07), transparent 22%),
        linear-gradient(145deg, #050505 0%, #171717 55%, #252525 100%);
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.login-brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-logo-wrapper {
    margin-bottom: 78px;
}

.login-logo {
    display: block;
    width: auto;
    max-width: 290px;
    max-height: 105px;
    object-fit: contain;
}

.brand-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

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

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.brand-copy h1 {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(2.3rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.brand-copy p {
    max-width: 500px;
    margin: 0;

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

    font-size: 1.04rem;
    line-height: 1.7;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-top: 44px;
}

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

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

    font-size: 0.94rem;
}

.brand-feature i {
    font-size: 21px;
}

.brand-footer {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78rem;
}


/* ==========================================================
PAINEL DE LOGIN
========================================================== */

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

    padding: 64px 72px;

    background: #ffffff;
}

.login-form-box {
    width: 100%;
    max-width: 410px;
}


/* ==========================================================
CABEÇALHO DO FORMULÁRIO
========================================================== */

.login-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;

    margin-bottom: 40px;
}

.login-heading-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

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

    border-radius: 14px;

    color: #ffffff;
    background: #000000;
}

.login-heading-icon i {
    font-size: 23px;
}

.login-kicker {
    display: block;

    margin-bottom: 5px;

    color: #777777;

    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.login-heading p {
    margin: 0;

    color: #7a7a7a;

    font-size: 0.94rem;
    line-height: 1.5;
}


/* ==========================================================
ALERTA
========================================================== */

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;
    padding: 13px 15px;

    border: 1px solid #ffcdd2;
    border-radius: 12px;

    color: #c62828;
    background: #fff5f5;

    font-size: 0.9rem;
}

.login-alert i {
    font-size: 20px;
}


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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-field {
    width: 100%;
}

.login-field label {
    display: block;

    margin-bottom: 8px;

    color: #333333;

    font-size: 0.86rem;
    font-weight: 600;
}

.login-input-wrapper {
    height: 54px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 15px;

    border: 1px solid #dddddd;
    border-radius: 13px;

    background: #fafafa;

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

.login-input-wrapper:focus-within {
    border-color: #111111;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);
}

.login-input-wrapper i {
    flex: 0 0 auto;

    color: #8b8b8b;

    font-size: 21px;
}

.login-input-wrapper input[type="email"],
.login-input-wrapper input[type="password"] {
    width: 100%;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    box-shadow: none !important;
    outline: none;

    color: #111111;
    background: transparent;

    font-size: 0.96rem;
}

.login-input-wrapper input::placeholder {
    color: #aaaaaa;
}


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

.login-submit {
    width: 100%;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 4px;
    padding: 0 20px;

    border: 0;
    border-radius: 13px;

    color: #ffffff;
    background: #000000;

    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;

    box-shadow: none;

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

.login-submit:hover,
.login-submit:focus {
    background: #212121;

    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.17);

    transform: translateY(-1px);
}

.login-submit i {
    font-size: 19px;
}


/* ==========================================================
NOTA DE SEGURANÇA
========================================================== */

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 27px;

    color: #999999;

    font-size: 0.78rem;
    text-align: center;
}

.login-security-note i {
    font-size: 16px;
}


/* ==========================================================
TABLETS
========================================================== */

@media screen and (max-width: 992px) {

    .login-page {
        padding: 20px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .login-brand-panel {
        min-height: auto;
        padding: 36px 40px;
    }

    .brand-logo-wrapper {
        margin-bottom: 34px;
    }

    .brand-copy h1 {
        font-size: 2.2rem;
    }

    .brand-features {
        display: none;
    }

    .brand-footer {
        margin-top: 30px;
    }

    .login-form-panel {
        padding: 48px 42px;
    }

}


/* ==========================================================
DISPOSITIVOS MÓVEIS
========================================================== */

@media screen and (max-width: 600px) {

    body {
        background: #ffffff;
    }

    .login-page {
        min-height: 100vh;
        padding: 0;
    }

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

        border-radius: 0;

        box-shadow: none;
    }

    .login-brand-panel {
        padding: 26px 24px 30px;
    }

    .brand-logo-wrapper {
        margin-bottom: 26px;
    }

    .login-logo {
        max-width: 210px;
        max-height: 78px;
    }

    .brand-eyebrow,
    .brand-copy p,
    .brand-footer {
        display: none;
    }

    .brand-copy h1 {
        margin: 0;

        font-size: 1.85rem;
        line-height: 1.12;
    }

    .login-form-panel {
        align-items: flex-start;

        padding: 36px 24px 42px;
    }

    .login-heading {
        gap: 13px;

        margin-bottom: 30px;
    }

    .login-heading-icon {
        flex-basis: 43px;

        width: 43px;
        height: 43px;
    }

    .login-heading h2 {
        font-size: 1.55rem;
    }

    .login-input-wrapper,
    .login-submit {
        height: 52px;
    }

}
