@charset "UTF-8";

/********** Reset minimo **********/
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #2a2a2a;
}

body {
    background: #ffffff;
}

/********** Layout split-screen **********/

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

.login-left,
.login-right {
    flex: 1 1 50%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-left,
.login-right,
#mensagem-alerta {
    padding-left: 0;
    color: red;
}

/********** LADO ESQUERDO - apresentacao **********/

.login-left {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
}

.login-left-bg {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-active-bg) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-left-header {
    position: relative;
    z-index: 1;
}

.login-brand {
    max-width: 300px;
    height: auto;
    display: block;
}

.login-left-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: auto;
}

.login-headline {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.login-accent {
    color: var(--color-login-accent);
}

.login-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 36px 0;
    max-width: 500px;
}

.login-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    max-width: 500px;
}

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

.login-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--color-active-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-feature-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-login-accent);
}

.login-feature-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

/********** Destaque IA (ALine) **********/

.login-ia {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    max-width: 500px;
    padding: 22px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(2px);
}

.login-ia-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.login-ia-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--color-active-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-ia-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-login-accent);
}

.login-ia-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-login-accent);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-login-accent);
}

.login-ia-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 14px 0;
}

.login-ia-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-ia-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.login-ia-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background-color: var(--color-login-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.login-left-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    margin-top: 32px;
}

/********** LADO DIREITO - formulario **********/

.login-right {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-brand);
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.login-form-subtitle {
    font-size: 14px;
    color: #8b9094;
    margin: 0 0 32px 0;
}

.login-form { margin: 0; }

.login-field { margin-bottom: 18px; }

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #b0b4b8;
    pointer-events: none;
    transition: fill 0.15s ease;
}

.login-input-wrap:focus-within .login-input-icon {
    fill: var(--color-brand);
}

.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border: 1px solid #dde1e5;
    border-radius: 8px;
    font-size: 14px;
    color: #2a2a2a;
    background-color: #f7f9fb;
    transition: all 0.18s ease;
    font-family: inherit;
    outline: none;
}

.login-field input:hover {
    border-color: #c4cbd1;
}

.login-field input:focus {
    border-color: var(--color-brand);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--color-brand-tint);
}

.login-field input::placeholder {
    color: #b0b4b8;
}

.login-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 8px 0 24px 0;
}

.login-link {
    color: var(--color-brand);
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.login-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 48px;
    background-color: var(--color-brand);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    letter-spacing: 0.3px;
    font-family: inherit;
    box-shadow: 0 2px 6px var(--color-brand-tint-strong);
}

.login-btn:hover {
    background-color: var(--color-brand-dark);
    box-shadow: 0 4px 12px var(--color-brand-tint-strong);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px var(--color-brand-tint);
}

.login-versao {
    text-align: center;
    margin-top: 32px;
    color: #b0b4b8;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/********** Compatibilidade com alert_bootstrap **********/

.login-form-wrapper .alert {
    margin: 0 0 18px 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}


.login-cadastro {
    text-align: center;
    margin: 18px 0 0 0;
    font-size: 13px;
    color: #6b7178;
}

.login-cadastro a {
    color: var(--color-primary);
    font-weight: 600;
}

/********** Banner voltar para 5.1 **********/

.login-voltar-51 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 18px;
    background: #1a2236;
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(26, 34, 54, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-voltar-51:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(26, 34, 54, 0.45);
    text-decoration: none;
    color: #ffffff;
}

.login-voltar-51-icon {
    width: 36px;
    height: 36px;
    background: rgba(240, 128, 32, 0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-voltar-51-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-login-accent, #f08020);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-voltar-51-texto {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.login-voltar-51-titulo {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.login-voltar-51-descricao {
    display: block;
    font-size: 12px;
    color: #cbd5e0;
}

.login-voltar-51-seta {
    color: var(--color-login-accent, #f08020);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

/********** Responsivo - empilha em telas estreitas **********/

@media (max-width: 900px) {
    html, body { overflow: auto; }

    .login-page { flex-direction: column; }

    .login-left,
    .login-right {
        flex: 0 0 auto;
        min-height: auto;
        width: 100%;
    }

    .login-left {
        padding: 32px 24px;
    }

    .login-headline { font-size: 28px; }
    .login-tagline { font-size: 14px; margin-bottom: 24px; }

    .login-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .login-ia {
        margin-top: 24px;
        padding: 18px 18px;
    }

    .login-ia-title { font-size: 16px; }
    .login-ia-list li { font-size: 13px; }

    .login-right {
        padding: 32px 24px;
    }
}
