/* RESTAPPIA design tokens and native Frappe presentation overrides. */
:root{--ra-primary:#021e42;--ra-primary-hover:#12395f;--ra-accent:#ef582c;--ra-bg:#f5f7fb;--ra-surface:#fff;--ra-ink:#18344e;--ra-muted:#65788d;--ra-border:#dce4ee;--ra-radius:12px;--primary:#021e42;--primary-color:#021e42;--btn-primary:#021e42;--text-on-primary:#fff;--border-radius:10px;--border-radius-md:12px;--border-radius-lg:16px}
html[data-theme="dark"]{--ra-primary:#153e67;--ra-primary-hover:#204e7b;--ra-bg:#0b1828;--ra-surface:#102236;--ra-ink:#edf4fc;--ra-muted:#a9bbce;--ra-border:#2d435a;--primary:#153e67;--primary-color:#153e67;--btn-primary:#153e67}
body.restappia-brand{--bg-color:var(--ra-bg);--fg-color:var(--ra-surface);--card-bg:var(--ra-surface);--text-color:var(--ra-ink);--text-muted:var(--ra-muted);--border-color:var(--ra-border);background:var(--ra-bg);color:var(--ra-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.restappia-brand .btn-primary,.restappia-brand .es-button[data-variant="solid"]:not([data-theme="red"]):not([data-theme="danger"]):not(.btn-danger){background:var(--ra-primary);border-color:var(--ra-primary);color:#fff;border-radius:10px;box-shadow:none}
.restappia-brand .btn-primary:hover,.restappia-brand .es-button[data-variant="solid"]:not([data-theme="red"]):not([data-theme="danger"]):not(.btn-danger):hover{background:var(--ra-primary-hover);border-color:var(--ra-primary-hover);color:#fff}
.restappia-brand input.form-control,.restappia-brand textarea.form-control,.restappia-brand select.form-control{border-radius:9px;border-color:var(--ra-border)}
.restappia-brand .form-control:focus,.restappia-brand .input-with-feedback:focus{border-color:var(--ra-accent);box-shadow:0 0 0 3px rgb(239 88 44 / 12%);outline:0}
.restappia-brand a:focus-visible,.restappia-brand button:focus-visible,.restappia-brand [role="button"]:focus-visible{outline:2px solid var(--ra-accent);outline-offset:3px}
.restappia-brand .navbar,.restappia-brand .desktop-header,.restappia-brand .desktop-navbar{background:var(--ra-surface);border-color:var(--ra-border)}
.restappia-brand .body-sidebar,.restappia-brand .layout-side-section{border-color:var(--ra-border)}
.restappia-brand .page-head,.restappia-brand .page-container,.restappia-brand .desktop-container{background:var(--ra-bg)}
.restappia-brand .widget,.restappia-brand .frappe-card,.restappia-brand .form-layout,.restappia-brand .modal-content{border-radius:var(--ra-radius);border-color:var(--ra-border)}
.restappia-brand .dropdown-menu,.restappia-brand .es-dropdown{border-radius:12px;border-color:var(--ra-border);box-shadow:0 12px 36px rgb(2 30 66 / 12%)}
.restappia-brand .sidebar-header .header-title,.restappia-brand .page-title,.restappia-brand .widget-title{color:var(--ra-ink)}
.restappia-brand .desktop-container .icon-img,.restappia-brand .desktop-container .app-logo{border-radius:16px}
.restappia-brand .indicator-pill.orange{background:#fff0e9;color:#a93a18}
.restappia-brand .btn.btn-secondary,.restappia-brand .btn.btn-default{border-radius:9px}
.restappia-brand .form-grid{border-radius:10px;overflow:hidden}
.restappia-brand ::selection{background:rgb(239 88 44 / 22%)}

/* Auth screens retain native forms, errors, rate limits, CSRF and OTP logic. */
body.restappia-auth{background:linear-gradient(115deg,#021e42 0%,#0b3157 47%,#f5f7fb 47%,#f5f7fb 100%);min-height:100vh;color:#18344e}
.ra-auth-story{position:fixed;inset:0 53% 0 0;z-index:1;display:flex;flex-direction:column;align-items:flex-start;padding:48px clamp(32px,5vw,88px);color:#fff;overflow:hidden;pointer-events:none}
.ra-auth-story:after{content:"";position:absolute;right:-120px;bottom:-140px;width:390px;height:390px;border-radius:50%;border:1px solid rgb(255 255 255 / 8%);box-shadow:0 0 0 80px rgb(255 255 255 / 2%),0 0 0 160px rgb(255 255 255 / 2%)}
.ra-auth-wordmark{display:block;pointer-events:auto}.ra-auth-wordmark img{display:block;width:234px;height:auto;max-width:100%}.ra-auth-story-copy{margin:auto 0;max-width:410px;padding:48px 0}.ra-auth-eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:.16em;color:#b0c5dd;margin-bottom:22px}.ra-auth-story h1{font-size:clamp(32px,3.8vw,54px);font-weight:750;line-height:1.12;letter-spacing:-.04em;color:#fff;margin:0 0 24px}.ra-auth-story p{font-size:15px;line-height:1.8;color:#b4c6da;max-width:330px;margin:0}.ra-auth-story small{font-size:11px;color:#9fb5cd}.ra-auth-symbols{display:flex;align-items:center;gap:9px;margin-top:32px}.ra-auth-symbols span{height:5px;width:22px;border-radius:3px;background:rgb(255 255 255 / 18%)}.ra-auth-symbols span:first-child{width:45px;background:#ef582c}
.restappia-auth .page-breadcrumbs,.restappia-auth .page-header-wrapper,.restappia-auth .page-footer,.restappia-auth .web-footer{display:none!important}.restappia-auth .page-content-wrapper{min-height:100vh;margin:0;padding-top:0}.restappia-auth main.container{max-width:none;width:100%;min-height:100vh;display:flex;align-items:center;justify-content:flex-end;padding:44px max(4vw,24px);margin:0}.restappia-auth main .page_content{width:min(430px,43vw);height:auto;min-height:0;margin:0 2vw 0 0;flex:none}.restappia-auth .page_content>div{width:100%}.restappia-auth .for-login,.restappia-auth .for-forgot,.restappia-auth .for-signup,.restappia-auth .for-email-login,.restappia-auth .for-login-with-email-link,.restappia-auth .for-reset-password{margin:0;padding:0;min-height:0}
.restappia-auth .page-card{width:100%;height:auto;min-height:0;max-width:none;background:#fff;color:#18344e;border:1px solid #e0e7f0;border-radius:22px;padding:34px;box-shadow:0 18px 64px rgb(2 30 66 / 9%);margin:0}.restappia-auth .page-card .page-card-head{padding:0;margin:0}.restappia-auth .page-card .page-card-head .app-logo{width:52px;height:52px;max-width:none;max-height:none;object-fit:contain;margin-bottom:6px;border-radius:13px}.restappia-auth .page-card h4{font-size:27px;line-height:1.25;letter-spacing:-.025em;font-weight:750;color:#021e42}.restappia-auth .page-card .page-card-subtitle{font-size:13px;line-height:1.75;color:#718095}.restappia-auth .page-card .form-control{background:#fff;border:1px solid #d8e1ec;height:46px;border-radius:10px;color:#18344e;font-size:14px;padding:11px 13px;box-shadow:none}.restappia-auth .page-card .form-control:focus{border-color:#ef582c;box-shadow:0 0 0 3px rgb(239 88 44 / 12%)}.restappia-auth .page-card .es-button{min-height:45px;border-radius:10px;font-size:14px;font-weight:650}.restappia-auth .page-card .es-button[data-variant="solid"]{background:#021e42;color:#fff;border-color:#021e42}.restappia-auth .page-card .es-button[data-variant="solid"]:hover{background:#12395f;border-color:#12395f}.restappia-auth .page-card .btn-login-option{background:#fff;border:1px solid #dce4ee;color:#18344e}.restappia-auth .page-card label{color:#415870;font-size:12px;font-weight:600}.restappia-auth .page-card .sign-up-message,.restappia-auth .page-card .sign-up-message a{font-size:12px}.restappia-auth .page-card a{color:#35516e}.restappia-auth .page-card a:hover{color:#b74421}.restappia-auth .page-card .toggle-password{color:#65788d}.restappia-auth .page-card .field-error{color:#bc2e36;font-size:12px;line-height:1.6}.restappia-auth .page-card .login-error-banner,.restappia-auth .page-card .login-success-banner{border-radius:10px;font-size:12px}.restappia-auth .page-card .password-strength-indicator{font-size:10px}.restappia-auth .page-card .password-hint{font-size:11px;line-height:1.6}
@media(max-width:1000px){.ra-auth-story{padding:40px 35px}.restappia-auth main .page_content{margin-right:0}.restappia-auth .page-card{padding:28px}.ra-auth-wordmark img{width:205px}}
@media(max-width:760px){body.restappia-auth{background:#f5f7fb}.ra-auth-story{position:relative;inset:auto;padding:28px 24px 32px;min-height:195px;background:#021e42}.ra-auth-wordmark img{width:190px}.ra-auth-story-copy{margin:26px 0 0;padding:0}.ra-auth-eyebrow,.ra-auth-story p,.ra-auth-story small,.ra-auth-symbols{display:none}.ra-auth-story h1{font-size:28px;line-height:1.13;margin:0}.ra-auth-story h1 br{display:none}.ra-auth-story:after{width:220px;height:220px;right:-50px;bottom:-140px}.restappia-auth .page-content-wrapper{min-height:0}.restappia-auth main.container{min-height:0;display:block;padding:24px 16px 38px}.restappia-auth main .page_content{width:100%;max-width:440px;margin:0 auto}.restappia-auth .page-card{border-radius:17px;padding:27px 24px;box-shadow:0 9px 28px rgb(2 30 66 / 5%)}.restappia-auth .page-card h4{font-size:25px}}
@media(prefers-reduced-motion:reduce){.restappia-brand *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.restappia-auth .page-card .password-field .form-control{padding-right:40px}
