/* Brand header — login / verify / admin auth pages */
.auth-brand-header {
    margin: 1.25rem auto 1.5rem;
    max-width: 320px;
}

.auth-brand-home-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-brand-home-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.brand-logo-wrap--auth {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 12px;
}

.brand-logo--auth-mark-sm {
    height: 40px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.auth-brand-main {
    margin-top: 0;
    line-height: 0;
    opacity: 0.98;
}

.brand-logo--auth-main {
    width: min(100%, 300px);
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: inline-block;
}

/* لوگوی اول زیر لینک «حساب ندارید؟» — مارجین مساوی از متن بالا و پایین فرم */
.auth-switch-link {
    margin-bottom: 0 !important;
}

.auth-brand-footer {
    margin: 1.25rem auto;
    max-width: 320px;
    text-align: center;
}

.auth-brand-mark {
    margin-top: 0.85rem;
    line-height: 0;
    opacity: 0.95;
}

.brand-logo--auth-mark {
    width: min(100%, 280px);
    height: auto;
    max-height: 56px;
    object-fit: contain;
    display: inline-block;
}

/* Dashboard sidebar brand mark */
.ud-brand-mark {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #000;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.12));
}

.ud-brand-mark a {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.ud-brand-mark a:hover {
    opacity: 0.9;
}

.brand-logo--dashboard-mark {
    width: 100%;
    max-width: 220px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    display: inline-block;
}

.ud-main .ud-page-brand-watermark {
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    max-width: 280px;
}

.ud-main {
    position: relative;
}

.ud-main > * {
    position: relative;
    z-index: 1;
}

.brand-logo--dashboard-watermark {
    width: 100%;
    height: auto;
    object-fit: contain;
}
