/* Auth views only. The application retains its existing theme and authentication behavior. */
body.auth-layout:has(.r2-auth-screen){background:var(--app-bg,#fff)!important}
body.auth-layout .main-content:has(>.r2-auth-screen){display:block!important;padding:0!important;background:var(--app-bg,#fff)!important}
.r2-auth-screen{--r2-auth-fg:var(--app-fg,var(--bs-body-color,#111827));--r2-auth-muted:var(--muted,var(--bs-secondary-color,#6c757d));--r2-auth-bg:var(--app-bg,var(--bs-body-bg,#fff));--r2-auth-border:var(--input-border,var(--card-border,#e5e7eb));--r2-auth-field:color-mix(in srgb,var(--input-bg,var(--bs-body-bg,#fff)) 94%,var(--r2-auth-muted) 6%);box-sizing:border-box;position:relative;width:100%;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;gap:32px;padding:24px max(24px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:var(--r2-auth-bg);color:var(--r2-auth-fg);font-family:var(--bs-body-font-family,system-ui,-apple-system,sans-serif)}
.r2-auth-screen>.r2-auth-card,.r2-auth-screen>.card.r2-auth-card{box-sizing:border-box;flex:0 0 auto;width:100%;max-width:430px;min-width:0;margin:auto 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none;color:var(--r2-auth-fg)}
.r2-auth-screen .r2-auth-card>.card-body{padding:0;min-width:0}
.r2-auth-screen .r2-auth-brand{display:flex;justify-content:center;align-items:center;margin:0 0 8px;min-height:125px}
.r2-auth-screen .r2-auth-logo{display:block;width:auto;height:125px;max-width:250px;object-fit:contain}
.r2-auth-screen .r2-auth-logo-dark{display:none}
html[data-theme="dark"] .r2-auth-screen .r2-auth-logo-light{display:none}
html[data-theme="dark"] .r2-auth-screen .r2-auth-logo-dark{display:block}
.r2-auth-screen :is(h1,h2).card-title,.r2-auth-screen #r2SsoLoginTitle{font-size:28px;line-height:1.2;letter-spacing:-.02em;font-weight:700!important;text-align:center;margin:0 0 24px!important;color:var(--r2-auth-fg)!important}
.r2-auth-screen .r2-auth-environment{font-size:11px;text-align:center;letter-spacing:.04em;color:var(--r2-auth-muted);margin:0 0 8px}
.r2-auth-screen :is(.text-white,.text-white-50,.reset-copy){color:var(--r2-auth-muted)!important}
.r2-auth-screen :is(.card-title.text-white,label.text-white){color:var(--r2-auth-fg)!important}
.r2-auth-screen :is(a.text-white,a.text-white-50,.r2-auth-link){color:var(--r2-auth-muted)!important;text-decoration:none;font-size:13px}
.r2-auth-screen a:hover{color:var(--primary,#0d6efd)!important;text-decoration:underline}
.r2-auth-screen a:focus-visible,.r2-auth-screen button:focus-visible{outline:2px solid var(--primary,#0d6efd);outline-offset:3px}
body.auth-layout .r2-auth-screen [class*="col-"],.r2-auth-screen [class*="col-"]{padding-inline:0!important}
.r2-auth-screen .r2-auth-field{display:flex;flex-direction:column;gap:6px}
.r2-auth-screen .form-label{font-size:12px;font-weight:600;color:var(--r2-auth-muted);line-height:1.35;margin:0}
.r2-auth-screen .form-label b{font-weight:600}
.r2-auth-screen .form-control{box-sizing:border-box;width:100%;height:52px;min-height:52px;padding:12px 14px!important;border:1px solid var(--r2-auth-border);border-radius:14px;background:var(--r2-auth-field);color:var(--r2-auth-fg);font-size:16px;line-height:1.35;box-shadow:none}
.r2-auth-screen .form-control::placeholder{color:color-mix(in srgb,var(--r2-auth-muted) 62%,transparent);opacity:1}
.r2-auth-screen .form-control:focus{border-color:var(--primary,#0d6efd);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,#0d6efd) 14%,transparent);background:var(--r2-auth-field)}
.r2-auth-screen .position-relative:has(>button[aria-controls]) .form-control{padding-right:52px!important}
.r2-auth-screen .position-relative>button[aria-controls]{position:absolute!important;top:auto!important;right:4px!important;bottom:0!important;width:44px;height:52px;margin:0!important;transform:none!important;color:var(--r2-auth-muted)!important;z-index:2}
.r2-auth-screen form>.col-12{margin-bottom:20px!important}
.r2-auth-screen form>.col-12:last-of-type{margin-bottom:0!important}
.r2-auth-screen form>.d-grid{width:100%;margin:24px 0 0!important}
.r2-auth-screen form button[type="submit"]{display:flex;justify-content:center;align-items:center;width:100%;min-height:56px;border-radius:999px;border:1px solid var(--primary,#0d6efd);background:var(--primary,#0d6efd);color:var(--r2-auth-bg);font-size:16px;font-weight:600;padding:14px 20px}
.r2-auth-screen form button[type="submit"]:hover{filter:brightness(.95)}
.r2-auth-screen form button[type="submit"]:disabled{opacity:.55;cursor:wait}
.r2-auth-screen .r2-auth-secondary{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:12px}
.r2-auth-screen .r2-auth-divider{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--r2-auth-muted);margin:24px 0 16px}
.r2-auth-screen .r2-auth-divider::before,.r2-auth-screen .r2-auth-divider::after{content:"";flex:1;height:1px;background:var(--r2-auth-border)}
.r2-auth-screen .r2-auth-create{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:100%;margin-top:32px;padding:10px 14px;border-radius:12px;border:1px solid var(--primary,#0d6efd);color:var(--primary,#0d6efd)!important;background:transparent;font-size:14px;font-weight:600;text-decoration:none}
.r2-auth-screen .r2-auth-create:hover{background:color-mix(in srgb,var(--primary,#0d6efd) 5%,var(--r2-auth-bg));text-decoration:none}
.r2-auth-screen .r2-auth-footer{flex:0 0 auto;width:100%;max-width:430px;margin:auto 0 0;padding-top:30px;text-align:center;font-size:11px;color:var(--r2-auth-muted);line-height:1.5}
.r2-auth-screen .r2-auth-footer nav{display:flex;justify-content:center;align-items:center;gap:10px}
.r2-auth-screen .r2-auth-footer a{font-size:11px;color:var(--r2-auth-muted);text-decoration:none}
.r2-auth-screen .r2-auth-footer p{margin:10px 0 0;opacity:.8}
.r2-auth-screen :is(.login-toast,.auth-callout,.reset-callout,.r2-sso-error){padding:12px 14px;border:1px solid var(--r2-auth-border);border-radius:12px;background:var(--r2-auth-field);color:var(--r2-auth-fg);font-size:13px;line-height:1.5;backdrop-filter:none;overflow-wrap:anywhere}
.r2-auth-screen :is(.login-toast-info,.auth-callout,.reset-callout){border-color:color-mix(in srgb,var(--primary,#0d6efd) 25%,var(--r2-auth-border));background:color-mix(in srgb,var(--primary,#0d6efd) 6%,var(--r2-auth-bg))}
.r2-auth-screen .login-toast-success{border-color:color-mix(in srgb,var(--bs-success,#198754) 30%,var(--r2-auth-border));background:color-mix(in srgb,var(--bs-success,#198754) 7%,var(--r2-auth-bg))}
.r2-auth-screen :is(.login-toast-warning,.login-toast-danger,.r2-sso-error){border-color:color-mix(in srgb,var(--bs-danger,#dc3545) 30%,var(--r2-auth-border));background:color-mix(in srgb,var(--bs-danger,#dc3545) 6%,var(--r2-auth-bg))}
.r2-auth-screen .reset-email{overflow-wrap:anywhere;font-size:13px;margin-top:8px}
.r2-auth-screen .auth-code-help{font-size:12px;color:var(--r2-auth-muted)}
.r2-auth-screen .auth-code-example{font-variant-numeric:tabular-nums;color:var(--r2-auth-fg)}
.r2-auth-screen .form-check-label{font-size:12px;color:var(--r2-auth-muted)}
.r2-auth-screen .form-check-label a{color:var(--primary,#0d6efd)!important}
@media(max-width:575.98px){.r2-auth-screen{padding-top:14px}.r2-auth-screen>.r2-auth-card{margin-top:0!important}.r2-auth-screen .r2-auth-footer{padding-top:28px}.r2-auth-screen form#loginForm button[type="submit"]{min-height:64px}}
@media(prefers-reduced-motion:reduce){.r2-auth-screen *{scroll-behavior:auto!important;transition:none!important}}

.r2-auth-screen:has(#loginForm) .card-title{margin-bottom:4px!important}
.r2-auth-screen .form-label.required-field::before,.r2-auth-screen .form-label.required-field::after{content:none}

.r2-auth-screen :is(#login-messages,#forgot-messages,#reset-messages,#activate-messages):not(:has(*)){display:none}
