/* Incorpora — autenticação alinhada ao template administrativo AdminHub. */
body.auth-adminhub-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text, #342e37);
    background: var(--auth-background, #eeeeee);
    font-family: "Inter", sans-serif;
}

.auth-adminhub-page .auth-shell {
    position: relative;
    min-height: 100vh;
    padding: clamp(20px, 4vw, 56px);
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--auth-primary, #3c91e6) 18%, transparent), transparent 32%),
        radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--auth-secondary, #ffce26) 16%, transparent), transparent 30%),
        var(--auth-background, #eeeeee) !important;
}

.auth-adminhub-page .auth-card {
    position: relative;
    width: min(1040px, 100%);
    min-height: min(620px, calc(100vh - 64px));
    grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
    border: 0;
    border-radius: 20px;
    background: var(--auth-surface, #f9f9f9);
    box-shadow: 0 24px 60px rgba(52, 46, 55, .13);
}

.auth-adminhub-page .auth-copy,
.auth-adminhub-page .auth-form {
    padding: clamp(34px, 5vw, 64px);
}

.auth-adminhub-page .auth-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: var(--auth-primary, #3c91e6) !important;
}

.auth-adminhub-page .auth-copy::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 44px solid rgba(255,255,255,.08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-adminhub-page .auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 52px;
    margin: 0 0 42px;
    color: #fff;
    text-decoration: none;
}

.auth-adminhub-page .auth-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 230px;
    max-height: 70px;
    object-fit: contain;
}

.auth-adminhub-page .auth-brand-text {
    font-size: 24px;
    font-weight: 800;
}

.auth-adminhub-page .auth-copy .settings-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: rgba(255,255,255,.76) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-adminhub-page .auth-copy h1 {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}

.auth-adminhub-page .auth-copy .settings-subtitle {
    position: relative;
    z-index: 1;
    max-width: 470px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.78) !important;
    font-size: 15px;
    line-height: 1.65;
}

.auth-adminhub-page .auth-demo {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.10);
}

.auth-adminhub-page .auth-demo span {
    color: rgba(255,255,255,.84);
    font-size: 13px;
    line-height: 1.55;
}

.auth-adminhub-page .auth-register-link {
    color: #fff;
    font-weight: 700;
}

.auth-adminhub-page .auth-form {
    display: grid;
    align-content: center;
    gap: 20px;
    background: var(--auth-surface, #f9f9f9);
}

.auth-adminhub-page .auth-form-head h2 {
    margin: 0 0 8px;
    color: var(--auth-text, #342e37);
    font-size: 30px;
}

.auth-adminhub-page .auth-form-head p {
    margin: 0;
    font-size: 13px;
}

.auth-adminhub-page .auth-back-link {
    color: var(--auth-primary, #3c91e6);
    font-weight: 600;
    text-decoration: none;
}

.auth-adminhub-page .auth-form .form-field {
    display: grid;
    gap: 8px;
}

.auth-adminhub-page .auth-form .form-field span {
    color: var(--auth-text, #342e37) !important;
    font-size: 13px;
    font-weight: 600;
}

.auth-adminhub-page .auth-form input {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: 0;
    background: var(--auth-background, #eeeeee);
    color: var(--auth-text, #342e37);
    font: 500 15px/1.3 "Inter", sans-serif;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-adminhub-page .auth-form input:focus {
    border-color: var(--auth-primary, #3c91e6);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-primary, #3c91e6) 14%, transparent);
}

.auth-adminhub-page .auth-submit {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--auth-primary, #3c91e6) !important;
    color: #fff;
    font: 700 15px/1 "Inter", sans-serif;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--auth-primary, #3c91e6) 24%, transparent);
}

.auth-adminhub-page .auth-submit:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.auth-adminhub-page .auth-error,
.auth-adminhub-page .auth-success {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
}

@media (max-width: 820px) {
    .auth-adminhub-page .auth-shell { padding: 18px; }
    .auth-adminhub-page .auth-card {
        min-height: 0;
        grid-template-columns: 1fr;
    }
    .auth-adminhub-page .auth-copy,
    .auth-adminhub-page .auth-form { padding: 30px; }
    .auth-adminhub-page .auth-brand { margin-bottom: 24px; }
    .auth-adminhub-page .auth-copy h1 { font-size: 30px; }
    .auth-adminhub-page .auth-demo { margin-top: 22px; }
}

@media (max-width: 480px) {
    .auth-adminhub-page .auth-shell { align-items: start; padding: 10px; }
    .auth-adminhub-page .auth-card { border-radius: 18px; }
    .auth-adminhub-page .auth-copy,
    .auth-adminhub-page .auth-form { padding: 24px 20px; }
    .auth-adminhub-page .auth-brand-logo { max-width: 180px; max-height: 54px; }
    .auth-adminhub-page .auth-copy .settings-subtitle { font-size: 13px; }
    .auth-adminhub-page .auth-form-head h2 { font-size: 26px; }
}

/* Login compacto: mantém o formulário no centro e reduz a ocupação visual. */
.auth-adminhub-page .auth-shell {
    padding: 24px !important;
    align-items: center !important;
}

.auth-adminhub-page .auth-card {
    width: min(820px, 100%) !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, .9fr) minmax(350px, 1.1fr) !important;
}

.auth-adminhub-page .auth-copy,
.auth-adminhub-page .auth-form {
    padding: 34px 38px !important;
}

.auth-adminhub-page .auth-brand {
    min-height: 42px !important;
    margin-bottom: 24px !important;
}

.auth-adminhub-page .auth-brand-logo {
    max-width: 175px !important;
    max-height: 52px !important;
}

.auth-adminhub-page .auth-copy h1 {
    font-size: clamp(27px, 3vw, 34px) !important;
}

.auth-adminhub-page .auth-copy .settings-subtitle {
    margin-top: 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.auth-adminhub-page .auth-demo {
    margin-top: 22px !important;
    padding: 12px 14px !important;
}

.auth-adminhub-page .auth-form {
    gap: 15px !important;
}

.auth-adminhub-page .auth-form-head h2 {
    font-size: 25px !important;
}

.auth-adminhub-page .auth-form input,
.auth-adminhub-page .auth-submit {
    min-height: 46px !important;
}

@media (max-width: 820px) {
    .auth-adminhub-page .auth-card { grid-template-columns: 1fr !important; }
    .auth-adminhub-page .auth-copy,
    .auth-adminhub-page .auth-form { padding: 26px !important; }
}

@media (max-width: 480px) {
    .auth-adminhub-page .auth-shell { align-items: start !important; padding: 10px !important; }
    .auth-adminhub-page .auth-copy,
    .auth-adminhub-page .auth-form { padding: 22px 20px !important; }
}
