/* GAPP - Página de Login (duas colunas) */

.page-login .header {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 2px 20px var(--sombra);
}

.login-main {
    min-height: 100vh;
    padding-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cinza-bg);
}

.login-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
    background: #fff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
}

@media (min-width: 901px) {
    .login-wrap {
        border-radius: 12px;
        min-height: 560px;
        max-height: 85vh;
    }
}

/* Coluna esquerda: imagem */
.login-visual {
    position: relative;
    background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--verde-terra) 100%);
    min-height: 240px;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Coluna direita: formulário */
.login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.login-form-inner {
    width: 100%;
    max-width: 360px;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--verde-profundo);
    margin-bottom: 0.5rem;
}

.login-desc {
    color: var(--cinza-texto);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--preto-suave);
    margin-bottom: 0.4rem;
}

.login-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--preto-suave);
    background: var(--off-white);
    border: 2px solid #e5e2dd;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form .form-input::placeholder {
    color: #999;
}

.login-form .form-input:hover {
    border-color: var(--ocre-argila);
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--verde-terra);
    box-shadow: 0 0 0 3px rgba(58, 95, 58, 0.15);
}

.btn-block {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.login-footer-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.login-footer-text a {
    color: var(--verde-terra);
    text-decoration: none;
    font-weight: 500;
}

.login-footer-text a:hover {
    text-decoration: underline;
}

/* Responsivo: empilhar colunas em telas menores */
@media (max-width: 900px) {
    .login-wrap {
        grid-template-columns: 1fr;
        max-width: 420px;
        min-height: auto;
    }

    .login-visual {
        min-height: 200px;
        max-height: 200px;
    }

    .login-form-wrap {
        padding: 2rem 1.5rem;
    }
}
