@charset "iso-8859-1";

/********** 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;
}

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

/********** 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;
}

/********** 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-right {
        padding: 32px 24px;
    }
}
