/* Rivercraft Authentication — Premium v1 (isolated from Workspace/App Shell) */
html { min-width: 320px; }
html body.rc-auth-page {
    --auth-deep: #052b32;
    --auth-navy: #082e38;
    --auth-teal: #069c99;
    --auth-aqua: #3bd9cd;
    --auth-ink: #102f3b;
    --auth-muted: #718793;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--auth-ink);
    background: #f2f8f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body.rc-auth-page *, body.rc-auth-page *::before, body.rc-auth-page *::after { box-sizing: border-box; }
body.rc-auth-page button, body.rc-auth-page input, body.rc-auth-page select { font: inherit; }
body.rc-auth-page .rc-auth-shell { display: grid; grid-template-columns: minmax(0, 51%) minmax(0, 49%); min-height: 100vh; min-height: 100dvh; width: 100%; }
/* Hero: dark teal, soft curves, and photography taken from approved art */
body.rc-auth-page .rc-auth-hero { position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: 680px; display: flex; flex-direction: column; background: linear-gradient(139deg, #05242d 3%, #06484c 42%, #0b6561 72%, #0b3741 100%); color: #f8ffff; }
body.rc-auth-page .rc-auth-hero-glow { position: absolute; z-index: -1; inset: -20% -42% 32% 18%; background: radial-gradient(ellipse at center,rgba(43,226,207,.27),transparent 65%); pointer-events: none; }
body.rc-auth-page .rc-auth-hero-art { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(180deg,#0a4f51 0%,rgba(5,49,53,.03) 24%,rgba(3,24,29,.04) 87%,rgba(3,24,29,.3) 100%), url('../img/auth-hero-office.webp') center bottom / cover no-repeat; opacity: .95; -webkit-mask-image: linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.25) 10%,#000 32%); mask-image: linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.25) 10%,#000 32%); }
body.rc-auth-page .rc-auth-hero-waves { position: absolute; z-index: -1; top: -19%; left: 14%; width: 113%; height: 98%; border-radius: 35% 42% 42% 38%; transform: rotate(-28deg); box-shadow: 0 0 0 1px rgba(93,238,228,.075), 0 0 0 39px rgba(3,69,70,.035), 0 0 0 75px rgba(66,216,210,.03), 0 0 0 125px rgba(66,216,210,.025); pointer-events: none; }
body.rc-auth-page .rc-auth-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 750px; margin: 0 auto; padding: clamp(38px,5.6vw,84px) clamp(28px,5.35vw,88px) 0; }
body.rc-auth-page .rc-auth-brand { display: flex; justify-content: center; align-items: center; gap: 17px; min-width: 0; }
body.rc-auth-page .rc-auth-hero .rc-auth-brand { justify-content: flex-start; }
body.rc-auth-page .rc-auth-brand-symbol { display: block; flex: 0 0 auto; width: 64px; height: 64px; object-fit: contain; }
body.rc-auth-page .rc-auth-brand-wordmark { display: block; width: min(240px,calc(100% - 84px)); height: auto; object-fit: contain; }
body.rc-auth-page .rc-auth-brand--light .rc-auth-brand-wordmark { filter: brightness(0) invert(1); }
body.rc-auth-page .rc-auth-hero-copy { margin-top: clamp(66px, 10vh, 122px); }
body.rc-auth-page .rc-auth-hero-copy h1 { color: #f7ffff; max-width: 590px; margin: 0; font-size: clamp(31px,3vw,47px); letter-spacing: -.037em; line-height: 1.18; font-weight: 750; }
body.rc-auth-page .rc-auth-hero-copy h1 span { color: #65e4dd; }
body.rc-auth-page .rc-auth-hero-copy p { color: #def5f4; max-width: 450px; font-size: 16px; line-height: 1.75; margin: 24px 0 0; }
body.rc-auth-page .rc-auth-hero-rule { margin-top: 33px; width: 63px; height: 4px; background: #43e1d0; border-radius: 4px; }
body.rc-auth-page .rc-auth-hero-bottom { position: absolute; bottom: 25px; left: clamp(28px,5.35vw,88px); font-size: 11px; letter-spacing: .12em; color: rgba(237,255,254,.74); font-weight: 650; }
body.rc-auth-page .rc-auth-hero-bottom span { padding: 0 6px; color: #58e8df; }
/* Form side */
body.rc-auth-page .rc-auth-main { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 48px 36px 24px; overflow: hidden; background: radial-gradient(ellipse at 0% 18%, #deeff1 0%, #f7fbfb 44%, #eff7f8 100%); }
body.rc-auth-page .rc-auth-main-glow { position: absolute; z-index: -1; inset: -20% -55% 5% 28%; border: 52px solid rgba(196,229,229,.3); transform: rotate(-26deg); border-radius: 50%; pointer-events: none; }
body.rc-auth-page .rc-auth-card { position: relative; width: min(100%, 545px); padding: clamp(36px,3.8vw,62px) clamp(30px,3.7vw,60px) clamp(38px,4vw,64px); background: #fff; border: 1px solid rgba(201,221,225,.64); border-radius: 24px; box-shadow: 0 30px 80px rgba(21,72,77,.13), 0 5px 22px rgba(21,72,77,.05); }
body.rc-auth-page .rc-auth-card .rc-auth-brand { margin-bottom: 36px; }
body.rc-auth-page .rc-auth-brand--dark .rc-auth-brand-symbol { width: 65px; height: 65px; }
body.rc-auth-page .rc-auth-brand--dark .rc-auth-brand-wordmark { width: min(230px,calc(100% - 85px)); }
body.rc-auth-page .rc-auth-intro { text-align: center; margin: 0 0 36px; }
body.rc-auth-page .rc-auth-intro h2 { margin: 0; color: var(--auth-ink); font-size: clamp(29px, 2.7vw, 37px); font-weight: 740; letter-spacing: -.04em; line-height: 1.2; }
body.rc-auth-page .rc-auth-intro p { margin: 9px 0 0; color: var(--auth-muted); font-size: 14px; }
body.rc-auth-page .rc-auth-form { margin: 0; }
body.rc-auth-page .rc-auth-field { margin: 0 0 24px; }
body.rc-auth-page .rc-auth-field label { display: block; width: auto; margin-bottom: 10px; color: var(--auth-ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
body.rc-auth-page .rc-auth-input-wrap { position: relative; display: flex; align-items: center; width: 100%; }
body.rc-auth-page .rc-auth-input-icon { position: absolute; z-index: 2; left: 17px; top: 50%; width: 20px; height: 20px; display: block; transform: translateY(-50%); color: #31566a; pointer-events: none; }
body.rc-auth-page .rc-auth-input { display: block; width: 100%; min-width: 0; height: 58px; margin: 0; padding: 0 18px 0 53px !important; border: 1px solid #d0dfe4; border-radius: 11px; outline: none; color: #183a43; background: #fff; box-shadow: none; font-size: 14px; line-height: normal; text-indent: 0 !important; transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none; }
body.rc-auth-page .rc-auth-input--password { padding-right: 58px !important; }
body.rc-auth-page .rc-auth-input::-webkit-input-placeholder { text-indent: 0; }
body.rc-auth-page .rc-auth-input::-moz-placeholder { text-indent: 0; }
body.rc-auth-page .rc-auth-input:-ms-input-placeholder { text-indent: 0; }
body.rc-auth-page .rc-auth-input::placeholder { text-indent: 0; }
body.rc-auth-page .rc-auth-input::placeholder { color: #94a5ae; opacity: 1; }
body.rc-auth-page .rc-auth-input:hover { border-color: #b3cbd1; }
body.rc-auth-page .rc-auth-input:focus { border-color: #008e8d; box-shadow: 0 0 0 4px rgba(0,158,153,.12); }
body.rc-auth-page .rc-auth-password-toggle { position: absolute; z-index: 2; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #3e6575; border: none; background: transparent; border-radius: 9px; cursor: pointer; }
body.rc-auth-page .rc-auth-password-toggle:hover { color: #087f80; background: #eaf7f6; }
body.rc-auth-page .rc-auth-password-toggle:focus-visible, body.rc-auth-page .rc-auth-submit:focus-visible { outline: 3px solid #6eddd0; outline-offset: 3px; }
body.rc-auth-page .rc-auth-submit { display: flex; gap: 13px; width: 100%; height: 60px; margin: 30px 0 0; padding: 0 24px; align-items: center; justify-content: center; font-weight: 750; font-size: 17px; letter-spacing: .003em; color: #fff; background: linear-gradient(110deg,#079c94,#069790); border: 0; border-radius: 11px; cursor: pointer; box-shadow: 0 11px 25px rgba(6,151,144,.16); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
body.rc-auth-page .rc-auth-submit:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 15px 28px rgba(6,151,144,.23); }
body.rc-auth-page .rc-auth-submit:active { transform: translateY(0); }
body.rc-auth-page .rc-auth-submit:disabled { cursor: wait; opacity: .7; }
body.rc-auth-page .rc-auth-footer { margin: 32px 0 0; font-size: 12px; text-align: center; color: #8399a4; }
/* Corporate selector and 500 error also use this same auth layout. */
body.rc-auth-page .rc-auth-content > h3 { margin: 0 0 8px; font-size: 28px; font-weight: 720; color: var(--auth-ink); text-align: center; }
body.rc-auth-page .rc-auth-content > p { color: var(--auth-muted); text-align: center; margin: 0 0 28px; }
body.rc-auth-page .rc-auth-content .form-group { margin-bottom: 20px; }
body.rc-auth-page .rc-auth-content .form-group label { color: var(--auth-ink); font-weight: 700; margin-bottom: 8px; }
body.rc-auth-page .rc-auth-content .form-group .form-control { width: 100%; height: 54px; padding: 0 15px; border-radius: 10px; border: 1px solid #d0dfe4; font-size: 14px; }
body.rc-auth-page .rc-auth-content form > .btn-primary { width: 100%; min-height: 54px; border-radius: 10px; background: #079b95; color: #fff; border: 0; }
body.rc-auth-page .rc-auth-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 1600px) {
    body.rc-auth-page .rc-auth-card { width: min(100%,565px); }
    body.rc-auth-page .rc-auth-hero-inner { max-width: 830px; }
}
@media (max-width: 1100px) {
    body.rc-auth-page .rc-auth-shell { grid-template-columns: minmax(0,45%) minmax(0,55%); }
    body.rc-auth-page .rc-auth-hero-inner { padding: 38px 30px 0; }
    body.rc-auth-page .rc-auth-hero-copy { margin-top: 82px; }
    body.rc-auth-page .rc-auth-hero-copy h1 { font-size: clamp(27px,3vw,35px); }
    body.rc-auth-page .rc-auth-card { padding: 37px 30px 42px; }
    body.rc-auth-page .rc-auth-hero-bottom { left: 30px; }
}
/* Tablet: hero becomes a short visual banner; the form remains centered. */
@media (max-width: 860px) {
    body.rc-auth-page .rc-auth-shell { display: flex; flex-direction: column; }
    body.rc-auth-page .rc-auth-hero { min-height: 0; height: 210px; flex: 0 0 auto; }
    body.rc-auth-page .rc-auth-hero-inner { padding: 26px 30px 0; }
    body.rc-auth-page .rc-auth-hero-copy { margin-top: 16px; }
    body.rc-auth-page .rc-auth-hero-copy h1 { max-width: 530px; font-size: 25px; }
    body.rc-auth-page .rc-auth-hero-copy p, body.rc-auth-page .rc-auth-hero-rule, body.rc-auth-page .rc-auth-hero-bottom { display: none; }
    body.rc-auth-page .rc-auth-hero-art { height: 100%; left: 50%; opacity: .17; }
    body.rc-auth-page .rc-auth-main { flex: 1; padding: 26px 24px 22px; }
    body.rc-auth-page .rc-auth-card { width: min(100%, 560px); }
    body.rc-auth-page .rc-auth-footer { margin: 22px 0 0; }
}
@media (max-width: 540px) {
    html body.rc-auth-page { font-size: 16px; }
    body.rc-auth-page .rc-auth-hero { height: 116px; }
    body.rc-auth-page .rc-auth-hero-inner { padding: 21px 22px 0; }
    body.rc-auth-page .rc-auth-hero-copy { display: none; }
    body.rc-auth-page .rc-auth-hero .rc-auth-brand-symbol { width: 43px; height: 43px; }
    body.rc-auth-page .rc-auth-hero .rc-auth-brand-wordmark { width: 172px; }
    body.rc-auth-page .rc-auth-hero .rc-auth-brand { gap: 11px; }
    body.rc-auth-page .rc-auth-main { padding: 0 12px 20px; justify-content: flex-start; background: #f3f9f9; overflow: visible; }
    body.rc-auth-page .rc-auth-main-glow { display: none; }
    body.rc-auth-page .rc-auth-card { z-index: 1; margin-top: -22px; width: 100%; padding: 26px 22px 32px; border-radius: 19px; }
    body.rc-auth-page .rc-auth-card .rc-auth-brand { margin-bottom: 18px; gap: 11px; }
    body.rc-auth-page .rc-auth-brand--dark .rc-auth-brand-symbol { width: 44px; height: 44px; }
    body.rc-auth-page .rc-auth-brand--dark .rc-auth-brand-wordmark { width: min(180px,calc(100% - 58px)); }
    body.rc-auth-page .rc-auth-intro { margin-bottom: 26px; }
    body.rc-auth-page .rc-auth-intro h2 { font-size: 28px; }
    body.rc-auth-page .rc-auth-intro p { font-size: 14px; }
    body.rc-auth-page .rc-auth-field { margin-bottom: 18px; }
    body.rc-auth-page .rc-auth-field label { font-size: 16px; margin-bottom: 8px; }
    body.rc-auth-page .rc-auth-input { height: 54px; font-size: 16px; padding-left: 52px !important; }
    body.rc-auth-page .rc-auth-submit { height: 56px; margin-top: 25px; font-size: 16px; }
    body.rc-auth-page .rc-auth-footer { font-size: 12px; margin: 16px 0 0; }
}
@media (max-width: 360px) {
    body.rc-auth-page .rc-auth-card { padding-left: 16px; padding-right: 16px; }
    body.rc-auth-page .rc-auth-hero-inner { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    body.rc-auth-page *, body.rc-auth-page *::before, body.rc-auth-page *::after { transition-duration: .01ms !important; }
}
