.auth-dialog {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    padding: 24px;
    overflow-y: auto;
    color: var(--ink, #182e27);
}
.auth-dialog [hidden] { display: none !important; }
.auth-dialog .layui-form-item { margin-bottom: 16px; }
.auth-dialog .layui-input { height: 42px; border-radius: 4px; }
.auth-dialog .layui-input-wrap { line-height: 42px; }
.auth-dialog .auth-dialog-submit { width: 100%; background: #0E5A4A; }
.auth-dialog-help { margin: 0 0 18px; line-height: 1.7; }
.auth-dialog-feedback { margin-bottom: 18px; padding: 12px; border-left-color: #0E5A4A; background: #f2f7f4; font-size: 13px; overflow-wrap: anywhere; }
.auth-dialog-feedback.auth-dialog-error { border-left-color: #c45149; background: #fff3f1; color: #963e37; }
.auth-captcha-row { display: flex; align-items: center; gap: 10px; }
.auth-captcha-row > .layui-input-wrap { flex: 1; min-width: 0; }
.auth-captcha-refresh { flex: 0 0 150px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.auth-captcha-refresh img { display: block; max-width: 100%; height: 42px; border: 1px solid var(--line, #d7e0d8); border-radius: 4px; }
.auth-text-button { display: inline-block; padding: 0; border: 0; background: transparent; color: #0E5A4A; font: inherit; font-size: 13px; cursor: pointer; }
.auth-text-button:hover { text-decoration: underline; }
.auth-captcha-row + .auth-text-button { margin-top: 8px; }
.auth-dialog-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.auth-dialog button:disabled { opacity: .6; cursor: wait; }
.auth-dialog-loading { margin: 12px 0; color: var(--muted, #546660); }
@media (max-width: 390px) {
    .auth-dialog { padding: 20px 16px; }
    .auth-captcha-refresh { flex-basis: 125px; }
}
