/* ============================================================
   login.css — Página de login
   Layout: tela dividida (esquerda escura + direita card)
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
}

/* ── Container principal ───────────────────────────────────── */
.login-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Lado esquerdo (imagem) ────────────────────────────────── */
.login-left {
    flex: 1.1;
    overflow: hidden;
}

.login-left-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.login-left-content {
    max-width: 480px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4rem;
}

.brand-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.brand-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.brand-highlight {
    color: #4CAF7D; /* verde da logo */
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
}

.login-slogan {
    font-size: 14px;
    color: #A8B0BA;
    line-height: 1.6;
    max-width: 360px;
}

/* ── Lado direito (card) ───────────────────────────────────── */
.login-right {
    flex: 1;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-wrap {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2.25rem;
}

/* Espaço reservado para a logo, acima do título "Entrar" */
.login-logo-space {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-logo-space img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

.login-form-wrap h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 13.5px;
    color: #888;
    margin-bottom: 1.75rem;
}

/* ── Mensagem de erro ──────────────────────────────────────── */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #FCEBEB;
    border: 0.5px solid #F09595;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #A32D2D;
    margin-bottom: 1.25rem;
}

.login-error i {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Campos ────────────────────────────────────────────────── */
.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.field-wrap {
    position: relative;
}

.field-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    background: #eef2fb;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.field-wrap input::placeholder {
    color: #aab2c0;
}

.field-wrap input:focus {
    border-color: #4CAF7D;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(76, 175, 125, 0.12);
}

.field-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.field-eye:hover {
    color: #4CAF7D;
}

/* ── Botão ─────────────────────────────────────────────────── */
.login-btn {
    width: 100%;
    height: 46px;
    background: #2E7D4F; /* verde da identidade */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.1s;
}

.login-btn:hover {
    background: #246340;
}

.login-btn:active {
    transform: scale(0.98);
}

/* ── Voltar / esqueci senha ────────────────────────────────── */
.login-voltar {
    margin-top: 1.25rem;
    text-align: center;
}

.login-voltar a {
    font-size: 13px;
    color: #2E7D4F;
    text-decoration: none;
    font-weight: 600;
}

.login-voltar a:hover {
    text-decoration: underline;
}

/* ── Sucesso ───────────────────────────────────────────────── */
.login-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #E1F5EE;
    border: 0.5px solid #5DCAA5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #085041;
    margin-bottom: 1.25rem;
}

.login-success i {
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Responsivo ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 1.5rem;
    }
}