:root {
    --brand-green: #006837;
    --brand-green-hover: #00502a;
    --bg-left: #e8f5e9;
    --bg-right: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-right);
    color: var(--text-dark);
    margin: 0;
}

/* Layout Dividido */
.split-layout {
    min-height: 100vh;
}

/* Coluna da Esquerda (Branding) */
.brand-section {
    background-color: var(--bg-left);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-logo {
    display: block;
    width: 190px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    max-height: 55vh;
    margin: 1rem auto;
    display: block;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.brand-text h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.brand-text h2 span {
    color: var(--brand-green);
}

.brand-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

/* Coluna da Direita (Formulário) */
.form-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

/* Estilização dos Inputs com Ícones */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.input-group-custom {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-group-custom i.icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 10;
}

.form-control, .form-select {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s;
    background-color: white;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Ícone de visualizar senha (olho) */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--brand-green);
}

/* Checkbox customizado */
.form-check {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check-input {
    margin-top: 0.25rem;
    border-color: var(--border-color);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.form-check-label a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Botão Principal */
.btn-brand {
    width: 100%;
    background-color: var(--brand-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
    margin-bottom: 1.5rem;
}

.btn-brand:hover {
    background-color: var(--brand-green-hover);
}

/* Link de Login */
.login-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-link a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer da página */
.page-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2rem;
}

/* Responsividade */
@media (max-width: 991px) {
    .brand-section {
        padding: 2rem;
        min-height: auto;
    }
    .hero-image {
        max-width: 300px;
        margin: 1.5rem auto;
    }
    .form-section {
        padding: 1rem;
    }
    .form-card {
        padding: 1.5rem;
    }
}