/* Login do Portal — CMA (redesign 2026). Card único flutuando sobre fundo esmaecido,
   formulário à esquerda e painel azul com recursos à direita. Sem modo escuro,
   sem footer de site. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: #eef1f6;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/fachada1.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.16;
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 940px;
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 32, 96, .20);
}

/* ===== formulário ===== */
.login-form {
    flex: 1 1 320px;
    padding: 34px 40px;
    display: flex;
    flex-direction: column;
}

.login-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #185fa5;
    text-decoration: none;
    margin-bottom: 22px;
}

.login-back:hover {
    text-decoration: underline;
}

.login-form-inner {
    margin: auto 0;
    width: 100%;
}

.login-brand {
    margin-bottom: 22px;
}

.login-brand img {
    height: 66px;
    width: auto;
}

.login-form-inner h1 {
    font-size: 26px;
    font-weight: 700;
    color: #002060;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.login-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.login-form-inner label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #002060;
    margin-bottom: 6px;
}

.login-form-inner input {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    color: #1c2430;
    background: #fff;
    border: 1px solid #d8dce6;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.login-form-inner input::placeholder {
    color: #9aa3b2;
}

.login-form-inner input:focus {
    outline: none;
    border-color: #002060;
    box-shadow: 0 0 0 3px rgba(0, 32, 96, .12);
}

.login-forgot {
    text-align: right;
    margin-bottom: 20px;
}

.login-forgot a {
    font-size: 13px;
    font-weight: 600;
    color: #0b43b3;
    text-decoration: none;
    cursor: pointer;
}

.login-forgot a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: #ffcc00;
    color: #002060;
    border: none;
    padding: 14px;
    border-radius: 28px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(240, 185, 0, .5);
    transition: transform .15s ease, box-shadow .15s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(240, 185, 0, .62);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

.login-firsttime {
    background: #f5f7fb;
    border: 1px solid #e9ecf3;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
    margin: 18px 0 0;
}

.login-firsttime strong {
    color: #002060;
}

.login-associe {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 18px 0 0;
}

.login-associe a {
    color: #002060;
    font-weight: 600;
    text-decoration: none;
}

.login-associe a:hover {
    text-decoration: underline;
}

.login-copy {
    font-size: 11px;
    color: #aeb5c2;
    text-align: center;
    margin: 22px 0 0;
}

/* ===== painel lateral ===== */
.login-side {
    flex: 1 1 340px;
    position: relative;
    min-height: 480px;
    background: #002060;
    overflow: hidden;
    color: #fff;
}

.login-side-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 7px;
    z-index: 2;
}

.login-side-stripe span {
    flex: 1;
}

.login-side-bg {
    position: absolute;
    inset: 0;
    background-image: url('../../images/fachada2.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.login-side-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 22, 64, .74);
    z-index: 1;
}

.login-side-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    box-sizing: border-box;
}

.login-side-content h2 {
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 10px;
    max-width: 330px;
}

.login-side-content .login-side-sub {
    font-size: 15px;
    color: #cdd8ef;
    line-height: 1.55;
    margin: 0 0 26px;
    max-width: 320px;
    font-weight: 300;
}

.login-side-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-side-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #eaf0fb;
}

.login-side-content li .ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 204, 0, .16);
    color: #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

@media (max-width: 780px) {
    .login-side {
        order: -1;
        min-height: 280px;
    }
}
