/* Extend the portal's existing dialogs without changing the document explorer. */
.auth-dialog [hidden] { display: none !important; }
#authDialog #forgotPassword { display: block; margin: -12px 0 12px auto; padding: 8px 0 8px 12px; border: 0; background: transparent; color: #0f766e; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
#recoveryDialog { width: min(460px, 94vw); max-height: 92vh; overflow-y: auto; }
#recoveryDialog h2 { font-size: 26px; padding-right: 20px; color: #183c37; }
#recoveryDialog p { font-size: 16px; line-height: 1.5; }
#recoveryDialog label { font-size: 14px; margin: 18px 0 8px; }
#recoveryDialog input { font-size: 16px; min-height: 44px; margin: 0; }
#recoveryDialog input[readonly] { background: #f2f6f5; color: #51615c; }
#recoveryDialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#recoveryDialog small { display: block; font-size: 14px; line-height: 1.5; color: #52645e; }
#recoveryDialog #recoveryCode { letter-spacing: .18em; }
#recoveryDialog .auth-submit { min-height: 46px; font-size: 16px; background: #0f766e !important; }
#recoveryDialog .recovery-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
#recoveryDialog .recovery-actions button { min-height: 40px; border: 0; color: #0f766e; background: transparent; font-size: 14px; }
#recoveryDialog .x { border: 0; background: transparent; color: #364e47; min-width: 40px; min-height: 40px; }
#recoveryDialog button:disabled { cursor: default; opacity: .65; }
#recoveryDialog #recoveryFeedback { padding: 12px; border-radius: 6px; background: #edf6f3; color: #254d40; font-size: 14px; overflow-wrap: anywhere; }
#recoveryDialog #recoveryFeedback[data-error="true"] { background: #fff0ed; color: #913221; }
#recoveryDialog :is(input, button):focus-visible, #authDialog #forgotPassword:focus-visible { outline: 3px solid #0f766e; outline-offset: 3px; }
@media (max-width: 440px) { #recoveryDialog form { padding: 26px 20px; } #recoveryDialog h2 { font-size: 24px; } }
