.are-auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}
.are-auth-wrap {
    width: min(1060px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: stretch;
}
.are-auth-panel,
.are-auth-card {
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--are-border);
    border-radius: 32px;
    box-shadow: var(--are-shadow);
}
.are-auth-panel {
    padding: 36px;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 20% 10%, rgba(37, 99, 235, .14), transparent 28%),
        radial-gradient(circle at 88% 15%, rgba(124, 58, 237, .16), transparent 24%),
        rgba(255, 255, 255, .9);
}
.are-auth-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}
.are-auth-brand strong,
.are-auth-brand span { display: block; }
.are-auth-brand strong { font-size: 15px; }
.are-auth-brand span { color: var(--are-muted); font-size: 13px; margin-top: 2px; }
.are-auth-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: .98;
    letter-spacing: -.055em;
}
.are-auth-copy p {
    margin: 0;
    color: var(--are-muted);
    line-height: 1.7;
    max-width: 520px;
}
.are-auth-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.are-auth-mini-grid div {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--are-border);
    border-radius: 18px;
}
.are-auth-mini-grid strong,
.are-auth-mini-grid span { display: block; }
.are-auth-mini-grid strong { font-size: 13px; }
.are-auth-mini-grid span { color: var(--are-muted); font-size: 12px; margin-top: 6px; }
.are-auth-card {
    padding: 34px;
    align-self: center;
}
.are-auth-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -.035em;
}
.are-auth-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}
.are-auth-form label span {
    display: block;
    margin-bottom: 8px;
    color: var(--are-text);
    font-size: 13px;
    font-weight: 800;
}
.are-auth-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--are-border);
    border-radius: 16px;
    background: var(--are-surface-soft);
    padding: 0 14px;
    outline: none;
}
.are-auth-form input:focus {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}
.are-auth-alert,
.are-auth-success,
.are-auth-note {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}
.are-auth-alert {
    color: #9f1239;
    background: var(--are-rose-soft);
    border: 1px solid #ffd7df;
}
.are-auth-success {
    color: #047857;
    background: var(--are-green-soft);
    border: 1px solid #c7f5e3;
}
.are-auth-note {
    color: var(--are-muted);
    background: var(--are-surface-soft);
    border: 1px solid var(--are-border);
}
@media (max-width: 860px) {
    .are-auth-wrap { grid-template-columns: 1fr; }
    .are-auth-panel { min-height: auto; gap: 28px; }
}
@media (max-width: 560px) {
    .are-auth-body { padding: 14px; }
    .are-auth-panel,
    .are-auth-card { padding: 22px; border-radius: 24px; }
    .are-auth-mini-grid { grid-template-columns: 1fr; }
}

/* PATCH 084B — login cleanup + registration foundation */
.are-auth-note a {
    color: var(--are-blue);
    font-weight: 950;
    text-decoration: none;
}
.are-auth-note a:hover { text-decoration: underline; }
.are-auth-register-wrap { width: min(1120px, 100%); }
.are-auth-register-card { align-self: stretch; }
.are-auth-form input:disabled,
.are-auth-form button:disabled {
    opacity: .62;
    cursor: not-allowed;
}
.are-auth-card .are-auth-alert ul { color: inherit; }
@media (min-width: 861px) {
    .are-auth-register-card .are-auth-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .are-auth-register-card .are-auth-form button {
        grid-column: 1 / -1;
    }
}

/* PATCH 095H1 — keep White Label auth logos contained inside the login/register logo box. */
.are-auth-brand .are-brand-mark {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.are-auth-brand .are-brand-mark.has-image {
    padding: 5px;
    background: #fff;
    border: 1px solid var(--are-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .10);
}

.are-auth-brand .are-brand-mark.has-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 11px;
}


/* PATCH 095H4: Unified brand lockup on public auth pages. */
.are-auth-brand-lockup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.08;
}
.are-auth-brand-primary,
.are-auth-brand-secondary {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.are-auth-brand-primary {
    color: var(--are-blue);
    font-size: 15px;
    font-weight: 900;
}
.are-auth-brand-secondary {
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    margin-top: 2px;
}
.are-auth-brand-lockup small {
    display: block;
    color: var(--are-muted);
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0;
    text-transform: none;
}


/* PATCH 095H5: Match public auth brand lockup to the inside-app sidebar brand style. */
.are-auth-brand {
    gap: 12px;
    align-items: center;
}
.are-auth-brand .are-brand-mark {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    border-radius: 13px;
}
.are-auth-brand .are-brand-primary,
.are-auth-brand .are-brand-secondary {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: .035em;
    margin: 0;
    line-height: 1.06;
}
.are-auth-brand .are-brand-primary {
    color: var(--are-blue) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
.are-auth-brand .are-brand-secondary {
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    margin-top: 2px !important;
}
.are-auth-brand-lockup small {
    display: none !important;
}
