:root {
    --brand: #22c55e;
    --brand-2: #16a34a;
}

/* 🔒 Escopo apenas para páginas de autenticação */
.auth-page {
    min-height: calc(100vh - 60px);
    padding: 24px 0;
    background: #f8fafc;
    /* fundo claro profissional */
    color: #0f172a;
    display: flex;
    align-items: center;
}

/* Container principal */
.auth-shell {
    width: 100%;
}

/* Card */
.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* Badge da marca */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .20);
    color: #166534;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Hero lateral */
.auth-hero {
    padding: 28px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(34, 197, 94, .14),
            rgba(34, 197, 94, .03));
    border-right: 1px solid #e5e7eb;
}

.auth-hero h2 {
    font-weight: 800;
    line-height: 1.1;
    margin-top: 18px;
    color: #0f172a;
}

.auth-hero p {
    color: #475569;
}

/* Form */
.auth-form {
    padding: 28px;
}

/* Inputs */
.form-control,
.form-select {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    border-radius: 12px;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(34, 197, 94, .20) !important;
    border-color: rgba(34, 197, 94, .55) !important;
}

/* Input group */
.input-group-text {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 12px;
}

/* Botão principal */
.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    padding: .8rem 1rem;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .18);
}

.btn-brand:hover {
    filter: brightness(1.03);
}

/* Links suaves */
.link-soft {
    color: #0f172a;
    text-decoration: none;
}

.link-soft:hover {
    text-decoration: underline;
}

/* Texto secundário */
.small-muted {
    color: #6b7280;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: .9rem;
    margin: 16px 0;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5e7eb;
}

/* Responsivo */
@media (max-width: 767.98px) {
    .auth-hero {
        display: none;
    }

    .auth-form {
        padding: 22px;
    }

    .auth-page {
        min-height: auto;
    }
}