/* CourseCloud sign in / sign up, standalone pages (e.g. /provider/signup/).
   Same rules as the auth block in cc-public.css, with its design tokens, for pages
   that build their own <head> and do not load cc-public.css. */
:root {
  --pub-brand: #5a32e6; --pub-brand-hover: #4a25cf; --pub-ink: #16141f; --pub-muted: #5d5a6b; --pub-subtle: #716d84;
  --pub-canvas: #f7f5f1; --pub-sunken: #f2f0ec; --pub-line: #e7e3dc; --pub-line-strong: #cfc9bf; --pub-success: #1d7a4c;
  --pub-sans: Geist, "Helvetica Neue", Arial, sans-serif; --pub-mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
html body { font-family: var(--pub-sans) !important; background: var(--pub-canvas); -webkit-font-smoothing: antialiased; color: var(--pub-ink); }
html body :is(h1, h2, h3, h4, p, label, input, select, textarea, button, a, span, div):not([class*="fa-"]) { font-family: var(--pub-sans); }

/* ==========================================================================
   Sign in / sign up (m_signin.php: .auth-fullscreen), premium v2
   Dark inset brand panel like the homepage hero, quiet form on the right.
   ========================================================================== */
html body .auth-fullscreen { background: var(--pub-canvas) !important; padding: 12px; gap: 12px; font-family: var(--pub-sans); }
html body .auth-fullscreen.standalone { padding: 12px; }

/* Brand panel */
html body .auth-branding-panel {
  flex: 0 0 44% !important; border-radius: 24px; padding: 64px 56px !important;
  align-items: flex-start !important; justify-content: center !important; isolation: isolate;
  background:
    radial-gradient(ellipse 620px 460px at 10% -10%, rgba(90,50,230,.75), transparent 65%),
    radial-gradient(ellipse 680px 520px at 100% 120%, rgba(124,92,240,.45), rgba(255,140,90,.08) 70%, transparent 80%),
    #0f0d1a !important;
}
html body .auth-branding-panel::before {
  top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; animation: none !important; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%);
}
html body .auth-branding-panel::after {
  content: "Verified providers \00B7  Instant confirmation \00B7  No booking fees"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: absolute; left: 56px; right: 56px; bottom: 36px;
  font-family: var(--pub-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4);
}
html body .auth-branding-content { text-align: left !important; color: #fff !important; max-width: 440px; }
html body .auth-brand-logo { height: 34px !important; margin: 0 0 48px !important; filter: brightness(0) invert(1); }
html body .auth-branding-title {
  font-family: var(--pub-sans) !important; font-size: clamp(36px, 3.6vw, 52px) !important; font-weight: 650 !important;
  line-height: 1 !important; letter-spacing: -0.045em !important; color: #fff !important; margin-bottom: 18px !important;
}
html body .auth-branding-subtitle { color: rgba(255,255,255,.66) !important; font-size: 17px !important; max-width: 380px !important; }
html body .auth-branding-painpoint { font-family: var(--pub-mono) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: .14em !important; color: #b9a8ff !important; }
html body .auth-features { margin-top: 44px !important; }
html body .provider-variant .auth-features { border-top-color: rgba(255,255,255,.1) !important; }
html body .auth-feature { gap: 14px !important; margin-bottom: 16px !important; opacity: 1 !important; }
html body .auth-feature-icon {
  width: 38px !important; height: 38px !important; border-radius: 11px !important;
  background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.12); box-shadow: none !important;
}
html body .auth-feature-icon i { color: #cbbcff !important; font-size: 15px !important; }
html body .auth-feature-text { color: rgba(255,255,255,.82) !important; font-size: 15px !important; }
html body .auth-feature-title { color: #fff !important; }
html body .auth-feature-desc { color: rgba(255,255,255,.6) !important; }

/* Form panel */
html body .auth-form-panel { background: #fff; border-radius: 24px; border: 1px solid var(--pub-line); padding: 64px !important; }
html body .auth-form-container { max-width: 420px !important; }
html body .auth-close-btn {
  width: 42px !important; height: 42px !important; border-radius: 50% !important;
  background: #fff !important; border: 1px solid var(--pub-line) !important;
}
html body .auth-close-btn:hover { border-color: var(--pub-ink) !important; transform: none !important; }
html body .auth-close-btn i { color: var(--pub-ink) !important; font-size: 15px !important; }
html body .auth-form-header { margin-bottom: 30px !important; }
html body .auth-form-header h2 {
  font-family: var(--pub-sans) !important; font-size: 36px !important; font-weight: 650 !important; letter-spacing: -0.045em !important;
  line-height: 1.05 !important; color: var(--pub-ink) !important; margin-bottom: 10px !important;
}
html body .auth-form-header p { color: var(--pub-muted) !important; font-size: 15px !important; }
html body .auth-form label { font-size: 13px !important; font-weight: 550 !important; color: var(--pub-ink) !important; margin-bottom: 8px !important; }
html body .auth-form label .required { color: var(--pub-brand) !important; }
html body .auth-form :is(input:not([type=checkbox]):not([type=radio]), textarea, select) {
  height: 52px; padding: 0 16px !important; border: 1px solid var(--pub-line) !important; border-radius: 14px !important;
  background: #fbfaf8 !important; font-size: 15px !important; color: var(--pub-ink);
  transition: border-color .2s, background .2s, box-shadow .2s !important;
}
html body .auth-form textarea { height: auto; padding: 14px 16px !important; }
html body .auth-form :is(input, textarea, select):hover { border-color: var(--pub-line-strong) !important; }
html body .auth-form :is(input, textarea, select):focus { background: #fff !important; border-color: var(--pub-ink) !important; box-shadow: 0 0 0 4px rgba(22,20,31,.07) !important; }
html body .auth-form :is(input, select).is-invalid { border-color: #b42318 !important; box-shadow: 0 0 0 4px rgba(180,35,24,.08) !important; }
html body .password-toggle { color: var(--pub-subtle) !important; }
html body .auth-form .select2-container .select2-selection--single { height: 52px !important; border: 1px solid var(--pub-line) !important; border-radius: 14px !important; background: #fbfaf8 !important; }
html body .auth-form .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px !important; }
html body .auth-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px !important; }
html body .auth-form .select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--pub-ink) !important; box-shadow: 0 0 0 4px rgba(22,20,31,.07) !important; }
html body .select2-dropdown { border: 1px solid var(--pub-line) !important; border-radius: 14px !important; box-shadow: 0 24px 50px -24px rgba(22,20,31,.35) !important; }
html body .select2-results__option--highlighted { background: var(--pub-sunken) !important; color: var(--pub-ink) !important; }

html body .btn-auth-primary {
  height: 54px; padding: 0 24px !important; border-radius: 14px !important;
  background: var(--pub-ink) !important; color: #fff !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: -0.01em;
  box-shadow: 0 14px 28px -16px rgba(15,13,26,.6) !important; transition: background .2s, transform .2s, box-shadow .2s !important;
}
html body .btn-auth-primary:hover { background: var(--pub-brand) !important; transform: translateY(-1px) !important; box-shadow: 0 18px 32px -16px rgba(90,50,230,.6) !important; }
html body .btn-auth-primary:disabled { background: #cfcac2 !important; box-shadow: none !important; transform: none !important; }
html body .btn-auth-secondary {
  height: 52px; padding: 0 24px !important; border-radius: 14px !important;
  background: #fff !important; border: 1px solid var(--pub-line) !important; color: var(--pub-ink) !important; font-weight: 600 !important;
}
html body .btn-auth-secondary:hover { border-color: var(--pub-ink) !important; background: #fff !important; }
html body .auth-link { color: var(--pub-ink) !important; font-weight: 600 !important; text-decoration: underline !important; text-decoration-color: var(--pub-line-strong) !important; text-underline-offset: 3px; }
html body .auth-link:hover { text-decoration-color: var(--pub-ink) !important; color: var(--pub-ink) !important; }
html body .auth-form-footer { color: var(--pub-muted) !important; font-size: 14px !important; }
html body .auth-divider { color: var(--pub-subtle) !important; font-family: var(--pub-mono); font-size: 11px !important; letter-spacing: .12em; text-transform: uppercase; }
html body .auth-divider::before, html body .auth-divider::after { background: var(--pub-line) !important; }
html body .auth-error { border-radius: 14px !important; background: #fdf3f2 !important; border-color: #f4d3cf !important; color: #b42318 !important; }
html body .auth-info { border-radius: 14px !important; background: color-mix(in srgb, var(--pub-brand) 6%, #fff) !important; border-color: color-mix(in srgb, var(--pub-brand) 20%, #fff) !important; color: var(--pub-ink) !important; }

/* Account type choice and MFA methods */
html body :is(.registration-card, .mfa-method-card) {
  border: 1px solid var(--pub-line) !important; border-radius: 18px !important; background: #fff !important;
  padding: 22px 18px !important; transition: border-color .2s, box-shadow .2s, transform .2s !important;
}
html body :is(.registration-card, .mfa-method-card):hover { border-color: var(--pub-line-strong) !important; background: #fff !important; transform: translateY(-1px); }
html body :is(.registration-card, .mfa-method-card).selected,
html body :is(.registration-card, .mfa-method-card).active { border-color: var(--pub-ink) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(22,20,31,.06) !important; }
html body .registration-card i { font-size: 22px !important; color: var(--pub-subtle) !important; }
html body .registration-card.selected i { color: var(--pub-brand) !important; }
html body .registration-card .card-title { font-size: 15px !important; color: var(--pub-ink) !important; letter-spacing: -0.01em; }
html body .auth-success-icon { background: color-mix(in srgb, var(--pub-success) 10%, #fff) !important; }
html body .auth-success-icon i { color: var(--pub-success) !important; }
html body .auth-success h3 { font-size: 28px !important; font-weight: 650 !important; letter-spacing: -0.04em !important; color: var(--pub-ink) !important; }

@media (max-width: 992px) {
  html body .auth-fullscreen { padding: 0; }
  html body .auth-form-panel { border-radius: 0; border: 0; padding: 72px 24px 32px !important; }
}
@media (max-width: 576px) {
  html body .auth-form-header h2 { font-size: 30px !important; }
}

html body .auth-fullscreen a[style*="--secondary"] { color: var(--pub-ink) !important; font-weight: 600 !important; text-decoration: underline; text-decoration-color: var(--pub-line-strong); text-underline-offset: 3px; }
/* Provider sign-up variant: more content, so it scrolls from the top and drops the footer strip */
html body .auth-branding-panel.provider-panel { justify-content: flex-start !important; overflow-y: auto; padding: 48px 52px !important; scrollbar-width: none; }
html body .auth-branding-panel.provider-panel::-webkit-scrollbar { display: none; }
html body .auth-branding-panel.provider-panel::after { display: none; }
html body .auth-branding-panel.provider-panel::before { position: fixed; }
html body .provider-variant .auth-brand-logo { margin-bottom: 36px !important; }
html body .provider-variant .auth-branding-title { font-size: clamp(34px, 3.2vw, 46px) !important; }
html body .provider-variant > .auth-feature-desc { margin-top: 24px; font-size: 13px !important; color: rgba(255,255,255,.5) !important; }
html body .provider-variant .auth-feature { margin-bottom: 14px !important; }
