/* Auth-only refinements: leave the authenticated dashboard and form behavior unchanged. */
.auth-page {
    box-sizing: border-box;
    min-height: 100svh;
    padding: 16px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    background: #faf5ed;
    color: #191919;
    overflow: visible;
}
.auth-panel {
    direction: inherit;
    min-width: 0;
    padding: 48px clamp(28px, 5vw, 100px);
    background: #fffefd;
    border-radius: 0 20px 20px 0;
}
html[dir="rtl"] .auth-panel { direction: rtl; }
html[dir="ltr"] .auth-panel { direction: ltr; }
.auth-card, .auth-card.compact { width: 100%; max-width: 440px; }
.auth-logo { margin-bottom: 28px; }
.auth-logo .app-logo-auth { height: 92px; width: auto; max-width: 100%; object-fit: contain; }
.auth-heading { margin-bottom: 30px; }
.auth-heading h1 { font-size: clamp(1.5rem, 1.8vw, 1.9rem); line-height: 1.6; margin-bottom: 10px; }
.auth-heading p { font-size: .95rem; color: #626872; line-height: 1.9; }
.auth-form { gap: 22px; }
.auth-field { gap: 9px; font-size: .94rem; text-align: start; }
.auth-input { height: 54px; border-radius: 10px; border-color: #d7d9dc; box-shadow: none; }
.auth-input input { font-weight: 400; padding-inline: 12px; }
.auth-input input::placeholder { color: #737983; opacity: 1; }
.auth-input:focus-within { border-color: #ef741d; box-shadow: 0 0 0 3px #ff781f1f; }
.auth-field-icon, .password-toggle { color: #747e8a; }
.password-toggle { min-width: 44px; min-height: 44px; cursor: pointer; }
.auth-options { gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.remember { color: #626872; min-height: 32px; }
.auth-options a, .auth-back { color: #ba4b00; }
.auth-options a:hover, .auth-back:hover { text-decoration: underline; }
.auth-submit { height: 54px; background: #f87516; border-radius: 10px; box-shadow: none; cursor: pointer; }
.auth-submit:hover { background: #d85c05; box-shadow: none; transform: none; }
.auth-register { margin: 18px 0 0; text-align: center; color: #69717b; font-size: .88rem; }
.auth-register a { color: #ba4b00; font-weight: 700; text-decoration: none; margin-inline-start: 5px; }
.auth-register a:hover { text-decoration: underline; }
.auth-page :is(button, a, input[type="checkbox"]):focus-visible { outline: 3px solid #bb5006; outline-offset: 4px; }
.auth-transfer { gap: 12px; font-size: .79rem; line-height: 1.9; color: #69717b; margin: 22px 0; }
.auth-transfer::before, .auth-transfer::after { content: ""; width: 26px; height: 1px; background: #dedede; flex-shrink: 0; }
.auth-security { justify-content: center; gap: 10px; padding: 8px 0; border: 0; background: transparent; border-radius: 0; }
.auth-security > span { color: #626872; font-size: .9rem; }
.auth-security-icon .mud-icon-root { width: 25px; height: 25px; }
.auth-footer { margin-top: 36px; padding-top: 12px; border: 0; color: #686e76; gap: 20px; }
.auth-footer button { background: transparent; color: inherit; min-height: 44px; cursor: pointer; }
.auth-footer > span { border-inline-start: 1px solid #e4e1dc; padding-inline-start: 20px; }
.auth-art {
    min-height: calc(100svh - 32px);
    border-radius: 20px 0 0 20px;
    padding: clamp(48px, 8vh, 100px) clamp(28px, 4vw, 76px) 54px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(180deg, #000b, #0001 46%, #0002 65%, #000d),
        #111 url("/images/auth-meeting.png") center / cover no-repeat;
}
.art-copy { padding: 0; text-align: start; direction: rtl; }
html[dir="ltr"] .art-copy { direction: ltr; }
.art-copy h2 { font-size: clamp(1.9rem, 2.7vw, 3.4rem); line-height: 1.6; margin-bottom: 18px; }
.art-copy p { font-size: clamp(.95rem, 1.1vw, 1.15rem); color: #f0ca91; margin: 0; }
.art-watermark { position: absolute; width: clamp(80px, 11vw, 175px); top: 34%; left: 28%; opacity: .13; mix-blend-mode: screen; pointer-events: none; }
.art-caption { position: relative; margin: 32px 0 0; text-align: start; direction: rtl; font-size: .95rem; line-height: 1.9; }
.art-caption::before { content: ""; display: inline-block; width: 32px; height: 2px; background: #f87516; vertical-align: middle; margin-inline-end: 14px; }
html[dir="ltr"] .art-caption { direction: ltr; }
@media (max-width: 1000px) {
    .auth-page { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .auth-art { display: none; }
    .auth-panel { min-height: calc(100svh - 24px); padding: 36px 24px; border-radius: 18px; }
    .auth-logo { margin-bottom: 24px; }
}
@media (max-width: 520px) {
    .auth-page { padding: 0; background: #fffefd; }
    .auth-panel { min-height: 100svh; padding: 32px 22px; border-radius: 0; }
    .auth-logo .app-logo-auth { height: 80px; }
    .auth-heading { margin-bottom: 26px; }
    .auth-heading h1 { font-size: 1.5rem; }
    .auth-heading p { font-size: .88rem; }
    .auth-options { gap: 8px 12px; font-size: .8rem; }
    .auth-transfer::before, .auth-transfer::after { display: none; }
    .auth-footer { margin-top: 26px; gap: 12px; }
    .auth-footer > span { padding-inline-start: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; animation: none !important; }
}
