/*
  Client sign-in pages on a Pro's website: /login, /forgot, /password (app/views/public/main/login.cfm, forgot.cfm,
  password.cfm through authShell.cfm). The same look as RebookMedia's sign-in window (authWindow.css), in the site's
  own colour and fonts: --rb-brand / --rb-on-brand come from the website template (rb-site.css), with fallbacks for
  older templates. Everything is under .rb-auth so the template's own styles can't change it.
*/
.rb-auth-main { display: block; padding: 48px 16px 64px; background: var(--rb-soft, #f7f7f7); }
.rb-auth, .rb-auth *, .rb-auth *::before, .rb-auth *::after { box-sizing: border-box; }
.rb-auth { --auth-brand: var(--rb-brand, #111827); --auth-on-brand: var(--rb-on-brand, #ffffff); max-width: 440px; margin: 0 auto;
    font-family: var(--rb-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); color: #111827; }
.rb-auth [hidden] { display: none !important; }
.rb-auth-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 40px -12px rgba(17, 24, 39, .18); overflow: hidden; }
.rb-auth-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
.rb-auth-back { width: 32px; height: 32px; margin-left: -6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #6b7280; cursor: pointer; }
.rb-auth-back:hover { background: #f3f4f6; color: #111827; }
.rb-auth-title { flex: 1; margin: 0; font-family: var(--rb-font-heading, inherit); font-size: 20px; font-weight: 600; line-height: 1.3; color: #111827; letter-spacing: 0; text-transform: none; }
.rb-auth-body { padding: 20px; }
.rb-auth-sub { margin: 0 0 16px; text-align: center; font-size: 15px; line-height: 1.45; color: #4b5563; }
.rb-auth-sub b { color: #111827; font-weight: 600; }

.rb-auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border-radius: 999px; border: 1px solid #dadce0;
    background: #fff; color: #1f1f1f; font: 500 15px/1 inherit; cursor: pointer; transition: background .15s; }
.rb-auth-google:hover { background: #f8f9fa; }
.rb-auth-google svg { width: 18px; height: 18px; flex: none; }
.rb-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #9ca3af; font-size: 13px; }
.rb-auth-or::before, .rb-auth-or::after { content: ""; flex: 1; border-top: 1px solid #e5e7eb; }

.rb-auth-field { margin-bottom: 14px; }
.rb-auth-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: #111827; }
.rb-auth-input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 18px; border-radius: 50px; border: 1px solid #dadada; background: #f8f8f8;
    color: #111827; font: 400 16px/1 inherit; outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.rb-auth-input:focus { border-color: var(--auth-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-brand) 18%, transparent); background: #fff; }
.rb-auth-input::placeholder { color: #9ca3af; }
.rb-auth-code { letter-spacing: .4em; font-size: 20px; text-align: center; }
.rb-auth-pw { position: relative; }
.rb-auth-pw .rb-auth-input { padding-right: 52px; }
.rb-auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; color: #6b7280; cursor: pointer; }
.rb-auth-eye:hover { color: #111827; }
.rb-auth-eye svg { width: 18px; height: 18px; }
.rb-auth-check { display: flex; align-items: center; gap: 8px; margin: 2px 0 16px; font-size: 14px; color: #374151; cursor: pointer; }
.rb-auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--auth-brand); }
.rb-auth-captcha { display: flex; justify-content: center; margin: 2px 0 14px; min-height: 78px; }

.rb-auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin: 0; border: 0; border-radius: 999px;
    background: var(--auth-brand); color: var(--auth-on-brand); font: 600 16px/1 inherit; cursor: pointer; transition: filter .15s, opacity .15s; }
.rb-auth-btn:hover { filter: brightness(1.08); }
.rb-auth-btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.rb-auth-spin { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: rb-auth-spin .7s linear infinite; }
.rb-auth-btn.is-busy .rb-auth-spin { display: inline-block; }
@keyframes rb-auth-spin { to { transform: rotate(360deg); } }

.rb-auth-link { padding: 0; border: 0; background: none; color: var(--auth-brand); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.rb-auth-link:hover { text-decoration: underline; }
.rb-auth-small { font-size: 12px; font-weight: 500; }
.rb-auth-foot { margin-top: 18px; text-align: center; font-size: 14px; color: #6b7280; }
.rb-auth-foot + .rb-auth-foot { margin-top: 8px; }
.rb-auth-err { display: none; margin-top: 10px; text-align: center; font-size: 13px; color: #dc2626; }
.rb-auth-err.is-on { display: block; }
.rb-auth-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.rb-auth-note.is-good { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.rb-auth-note.is-bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.rb-auth-muted { margin: 8px 0 0; font-size: 13px; color: #6b7280; }
.rb-auth-icon { width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--auth-brand) 12%, #fff); color: var(--auth-brand); }
.rb-auth-icon svg { width: 26px; height: 26px; }
.rb-auth-rules { list-style: none; margin: 4px 0 16px; padding: 0; font-size: 13px; color: #6b7280; }
.rb-auth-rules li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.rb-auth-rules li::before { content: ""; width: 16px; height: 16px; border-radius: 999px; border: 2px solid #d1d5db; flex: none; }
.rb-auth-rules li.is-ok { color: #166534; }
.rb-auth-rules li.is-ok::before { border-color: #16a34a; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Alimie: the header floats see-through over each page's dark top photo and turns dark on scroll (alimie.js);
   these pages have no top photo, so it is dark from the start and the card starts below it */
.rb-auth-page .al-header { background: rgba(17, 17, 17, .95); box-shadow: 0 2px 20px rgba(0, 0, 0, .2); }
.rb-auth-page .al-header ~ .rb-auth-main { padding-top: 128px; }
@media (max-width: 767px) {
    .rb-auth-page .al-header ~ .rb-auth-main { padding-top: 88px; }
}

/* older (non-standard) templates: the page has no site colours, so keep a neutral backdrop */
.rb-auth-legacy { background: #f3f4f6; min-height: 70vh; }

@media (max-width: 480px) {
    .rb-auth-main { padding: 24px 12px 40px; }
    .rb-auth-head { padding: 14px 16px; }
    .rb-auth-body { padding: 16px; }
    .rb-auth-sub { font-size: 14px; margin-bottom: 12px; }
    .rb-auth-or { margin: 14px 0; }
}
@media (max-width: 359px) {
    .rb-auth-captcha > div { transform: scale(.88); transform-origin: center top; }
    .rb-auth-captcha { min-height: 70px; }
}
