.feige-mail-step[hidden], .feige-captcha-dialog [hidden] { display:none !important; }
.feige-captcha-dialog {
    width:min(360px, calc(100vw - 32px)); max-height:calc(100dvh - 32px);
    margin:auto; padding:0; overflow:auto; border:1px solid var(--feige-line, var(--ri-border-color, #ddd));
    border-radius:16px; background:var(--feige-panel, var(--ri-body-bg, #fff));
    color:var(--feige-ink, var(--ri-body-color, #222)); box-shadow:0 20px 70px #0005;
}
.feige-captcha-dialog::backdrop { background:#0009; backdrop-filter:blur(3px); }
.feige-captcha-content { padding:24px; text-align:left; }
.feige-captcha-content h2 { font-size:22px; margin:0 0 12px; color:inherit; }
.feige-captcha-content p { font-size:14px; line-height:1.6; color:var(--feige-muted, var(--ri-secondary-color, #666)); margin:0 0 20px; }
.feige-captcha-content label { display:block; font-size:14px; }
.feige-captcha-content input { margin-top:8px; width:100%; }
.feige-captcha-content .feige-refresh-captcha { display:flex; align-items:center; justify-content:center; margin:0 auto 20px; min-width:174px; height:64px; padding:8px; border:1px solid var(--feige-line, #ddd); border-radius:8px; background:#fff; color:#333; cursor:pointer; font-size:14px; }
.feige-refresh-captcha img { display:block; width:150px; height:50px; }
.feige-dialog-status { min-height:22px; margin-top:10px; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.feige-captcha-actions { display:flex; gap:12px; margin-top:16px; }
.feige-captcha-actions .btn { flex:1; white-space:nowrap; }
.feige-code-status { overflow-wrap:anywhere; }

/* Compact account cards; colours and branding come from the active theme. */
.ri-popup-body:has(.feige-auth-form) { max-width:360px !important; width:calc(100% - 32px) !important; padding:0; margin:24px auto; }
.ri-popup-content:has(.feige-auth-form), .feige-auth-card-inner { padding:30px 24px 24px !important; }
.ri-popup-content:has(.feige-auth-form), .feige-auth-card { border:1px solid var(--feige-line, var(--ri-border-color)); border-radius:10px !important; background:var(--feige-panel, var(--ri-body-bg)) !important; }
.ri-popup:has(.feige-auth-form) .ri-popup-close { top:8px; right:8px; left:auto; bottom:auto; width:28px; height:28px; transform:none; }
.ri-popup:has(.feige-auth-form) .svg-close { width:28px; height:28px; background:none; color:var(--feige-muted, var(--ri-body-color)); line-height:28px; font-size:25px; }
.ri-popup:has(.feige-auth-form) .svg-close::before { content:'×'; }
.ri-popup:has(.feige-auth-form) .svg-close:hover { transform:none; color:var(--feige-ink, var(--ri-heading-color)); }
.ri-popup-content:has(.feige-auth-form) .logo-wrapper { margin:0 0 8px; }
.ri-popup-content:has(.feige-auth-form) .logo, .feige-auth-card .logo { width:138px !important; height:34px !important; object-fit:contain; margin:0 auto 8px !important; }
.login-and-register .feige-auth-card { width:360px; max-width:calc(100vw - 32px); }
.login-and-register .feige-auth-form { max-width:none; }
.feige-auth-form { font-size:14px; line-height:1.5; color:var(--feige-muted, var(--ri-body-color)); }
.feige-auth-form .feige-auth-title { font-size:14px; line-height:1.5; font-weight:400; text-align:center; color:var(--feige-muted, var(--ri-body-color)); margin:0 0 28px; }
.feige-auth-field { position:relative; margin:0 0 22px; }
.feige-auth-field > label { position:absolute; left:11px; top:-9px; z-index:1; padding:0 5px; margin:0; font-size:12px; font-weight:400; line-height:18px; background:var(--feige-panel, var(--ri-body-bg)); color:var(--feige-muted, var(--ri-body-color)); }
.feige-auth-field:focus-within > label { color:var(--ri-primary); }
.feige-auth-form .feige-auth-field .form-control { min-height:48px; height:48px; width:100%; margin:0; padding:12px 14px; border:1px solid var(--feige-line, var(--ri-border-color)); border-radius:6px; background:var(--feige-panel, var(--ri-body-bg)); color:var(--feige-ink, var(--ri-body-color)); font-size:14px; box-shadow:none; }
.feige-auth-form .feige-auth-field .form-control:focus { border-color:var(--ri-primary); box-shadow:0 0 0 1px rgba(var(--ri-primary-rgb),.15); }
.feige-auth-field .form-control::placeholder { font-size:12px; font-weight:400; opacity:.65; }
.feige-auth-form .feige-password-field .form-control { padding-right:44px; }
.feige-toggle-password { position:absolute; right:4px; top:4px; width:40px; height:40px; padding:0; border:0; background:transparent; color:var(--feige-muted, var(--ri-body-color)); font-size:15px; }
.feige-auth-form .feige-mail-field .form-control { padding-right:108px; }
.feige-mail-field .feige-send-code { position:absolute; right:7px; top:7px; height:34px; padding:0 5px; font-size:12px; border:0; border-radius:4px; background:transparent; color:var(--ri-primary); white-space:nowrap; }
.feige-mail-field .feige-send-code:disabled { opacity:.55; }
.feige-auth-form .feige-code-status:not(:empty), .feige-inline-status:not(:empty) { margin:-12px 0 20px; font-size:12px; line-height:1.5; }
.feige-inline-status:not(:empty) { margin:6px 0 0; }
.feige-auth-form .feige-login-image .form-control { padding-right:136px; }
.feige-inline-captcha { position:absolute; top:4px; right:4px; width:120px; height:40px; border:0; border-radius:4px; overflow:hidden; padding:0; font-size:12px; color:#202537; background:#fff; }
.feige-inline-captcha img { width:120px; height:40px; display:block; }
.feige-inline-captcha [hidden] { display:none !important; }
.feige-auth-form .feige-remember { display:flex; gap:7px; align-items:center; margin:-3px 0 14px; font-size:12px; font-weight:400; }
.feige-auth-form .form-check-input { flex-shrink:0; width:14px; height:14px; margin:0; }
.feige-auth-consent { display:flex; align-items:center; justify-content:center; gap:6px; padding:11px 8px; margin:0 0 14px; background:rgba(var(--ri-primary-rgb),.035); font-size:12px; font-weight:400; }
.feige-auth-agreement { margin:0 0 14px; text-align:center; font-size:12px; }
.feige-auth-consent a, .feige-auth-agreement a { margin:0 3px; white-space:nowrap; }
.feige-auth-form .feige-auth-submit { display:block; width:100%; height:44px; margin:0 0 16px; padding:10px 12px; border-radius:6px; font-size:14px; font-weight:600; box-shadow:none; }
.feige-auth-switch { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; }
.feige-auth-switch > span { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.feige-auth-form .feige-auth-minor, .feige-auth-form .feige-auth-switch-link { display:inline-flex; align-items:center; justify-content:center; padding:5px 8px; border:1px solid rgba(var(--ri-primary-rgb),.35); border-radius:4px; line-height:18px; }
.feige-auth-form .feige-auth-switch-link { background:rgba(var(--ri-primary-rgb),.08); }
.feige-invite-link { display:block; text-align:right; margin-top:6px; font-size:12px; }
@media (max-width:420px) {
  .ri-popup-content:has(.feige-auth-form), .feige-auth-card-inner { padding:28px 20px 22px !important; }
}
[data-bs-theme] .feige-brand .feige-auth-card { background:var(--feige-panel, var(--ri-body-bg)) !important; }
.feige-auth-form .feige-auth-consent a, .feige-auth-form .feige-auth-agreement a, .feige-auth-form .feige-auth-minor, .feige-auth-form .feige-auth-switch-link { color:var(--ri-primary); }

.feige-auth-form .form-check-input:not(:checked) { border-color:var(--feige-muted, #888); background-color:transparent; }
