/* Log in, Sign up and Reset password (and the admin's sign-in, which loads it too).
   Split from style.css (16 Nov 2026, C2): each page links css/base.css and its own sheets in <head>, in the order
   base, pattern, marketing, auth, make, library, settings, share, workspace; a rule that came later in style.css still
   comes later where both load. Its dark twin is css/auth-dark.css (07_scripts/maintenance/site_dark_css.py).
   An !important left says why, on the line before its rule: what it must win over. */

/* =====================================================================
                            COMMON PAGE STYLES
   ===================================================================== */

/* !important: over .hide-desktop's !important */
.auth-page .name-row.hide-mobile {
  display: flex !important;
}

/* =======================
   UTILITY CLASSES
   ======================= */

/* =======================
   NAVIGATION BAR STYLES
   ======================= */
/* A form mistake under the box it is about (sign-up). */
.field-error {
  margin: 4px 0 0;
  color: #b00020;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: left;
}
.field-error[hidden] { display: none; }

/* =======================
   LOGIN / SIGNUP / RESET PASSWORD STYLES
   ======================= */

.auth-page .container {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.auth-page-hero-image-wrapper {
  flex: 1;
  position: relative;
  min-height: 100%;
  background-color: var(--bg-light);
  /* The picture is cut to its half of the page: wider than it on a narrow window or at 200% zoom, it made the
     sign-up and log-in pages scroll sideways. */
  overflow: hidden;
}

.auth-page-hero-image {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 70%;
  max-width: none;
  color: var(--bg-light);
}

/* !important: over the New design's body.auth-page .auth-body */
.auth-body {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: stretch;
  height: 100vh;
  background: var(--bg-light) !important;
  position: relative;
}

.auth-content-area {
  flex: 0 0 42.5rem;
  min-width: 50%;
  background: var(--White);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* padding: 3rem 1.5rem 1.5rem 1.5rem; */
  /* box-shadow: 0 0.125rem 1.5rem var(--Box-Shadow); */
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  background-color: var(--bg-light);
}

.auth-btn-row {
  width: 100%;
  margin-bottom: 1.5rem;
}

.verification-box {
  border: 0.125rem solid #0037e6;
  border-radius: 0.1875rem;
  width: 3.125rem;
  height: 3.625rem;
  font-size: 2rem;
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
  color: var(--black);
  background: var(--White);
  box-sizing: border-box;
}

.verification-box:focus {
  border-color: #0037e6;
  box-shadow: 0 0 0 0.125rem #e6edff;
}

@media (max-width: 768px) {
  .verification-box {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 2.75rem;
    font-size: 1.4rem;
  }
  #verification-boxes {
    width: 100%;
    box-sizing: border-box;
  }
}

/* !important: over new_design/auth's .nd-check-tip */
#verification-code-section,
#verification-code-section p {
  font-size: 0.875rem !important;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
}

#resend-message {
  font-size: 0.875rem;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-outer-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-title-row {
  width: 100%;
  margin-bottom: 1.125rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.875rem;
}

.auth-form-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.125rem;
}

.auth-form-row.password {
  margin-bottom: 0.75rem;
}

.password-label-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.forgot-password-link {
  align-self: flex-end;
  font-size: 0.875rem;
  color: var(--Pure-Blue);
  margin-top: 0.25rem;
  cursor: pointer;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
}

.auth-checkbox-row {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 1.125rem;
  margin-bottom: 1.125rem;
  gap: 0.5rem;
}

.auth-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.125rem;
  border: 0.0625rem solid var(--Black);
  accent-color: var(--Pure-Blue);
  cursor: pointer;
}

/* What Keep me logged in does, under the box (log-in page). */

.agreement-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 0;
  flex-direction: row;
}

/* The Terms window's foot (sign-up): the hint, the box to tick and Accept one under another, the window's width, as on
   a phone. As a row, the hint was squeezed into a narrow column beside Accept and the rule above them stopped short of
   the window's sides (21 Nov 2026). */
#PrivacyPolicy .agreement-section {
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
}

.agreement-label {
  display: flex;
  align-items: center;
  font-family: var(--font-family-open-sans);
  font-size: 0.875rem;
  font-weight: normal;
}

/* !important: over the inline font-size a script sets (and more) */
.resend-verification-btn,
.resend-timer {
  align-self: flex-end;
  font-size: 0.875rem !important;
  color: var(--trial-period-dark-red-colour) !important;
  background-color: transparent !important;
  margin-top: 0.25rem;
  cursor: pointer;
  font-family: var(--font-family-open-sans);
  font-weight: normal !important;
  text-decoration: underline;
  border: none;
}

.span {
  font-size: 0.875rem;
  color: var(--Black);
  font-weight: normal;
  font-family: var(--font-family-open-sans);
}

.terms-policy-text {
  text-decoration: underline;
  cursor: pointer;
  color: var(--Black);
  transition: color var(--transition), text-decoration-color var(--transition);
  text-decoration-color: var(--Black);
  font-size: 0.875rem;
  color: var(--Black);
  font-weight: normal;
  font-family: var(--font-family-open-sans);
}

.terms-policy-text:hover,
.terms-policy-text:focus,
.terms-policy-text:active {
  color: var(--Pure-Blue);
  text-decoration-color: var(--Pure-Blue);
  font-size: 0.875rem;
  font-weight: normal;
  font-family: var(--font-family-open-sans);
}

.auth-link-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.125rem;
}

.floating-input-wrapper .password-toggle-icon {
  right: 0.625rem;
  top: auto;
  bottom: calc(var(--ds-control-h) / 2);
  transform: translateY(50%);
}
.floating-input-wrapper:has(.password-toggle-icon) .floating-input { padding-right: 44px; }
/* Log in's and Sign up's eye, placed by its own style at the middle of label and box together: in the box (13 Nov 2026). */
/* !important: over the New design's :is(#password-toggle-icon, #confirm… */
.floating-input-wrapper:has(> #password-toggle-icon) .floating-input,
.floating-input-wrapper:has(> #confirm-password-toggle-icon) .floating-input { padding-right: 44px; }

.password-toggle-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: var(--Boulder);
  cursor: pointer;
  z-index: 2;
  user-select: none;
  transition: color var(--transition);
}

#policy-content::-webkit-scrollbar {
  width: 0.625rem;
}

#policy-content::-webkit-scrollbar-thumb {
  background: var(--Pure-Blue);
  border-radius: 0.5rem;
}

#policy-content::-webkit-scrollbar-track {
  background: var(--Dusty-Gray);
  border-radius: 0.5rem;
}

/* =======================
   HOMEPAGE STYLES
   ======================= */

.password-toggle-icon:hover {
  color: var(--Pure-Blue);
}

/* =======================
   SETTINGS STYLES
   ======================= */

/* The log-in page, opened from a page that needs a sign-in (script/site/signed_in_gate.js). */
.signed-out-note {
  margin: 0 0 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: #EEF2FF;
  color: #1E2A78;
  font-family: var(--font-family-open-sans);
  font-size: 0.9375rem;
}

/* =======================
   ADMIN DASHBOARD STYLES
   ======================= */

.admin-dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-dashboard-main--custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 2rem;
  max-width: 95%;
  margin: 0 auto;
  padding: 3rem 0rem;
}

/* Make tables scrollable horizontally if needed */
.admin-table {
  min-width: 50%;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.admin-section--stats {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.admin-section--user-types {
  min-width: 50%;
  max-height: 25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

#adminUserTypesChart {
  width: 100%;
  height: 100%;
  max-height: 22.5rem;
  min-width: 0;
  display: block;
  box-sizing: border-box;
}

.admin-section--user-management {
  grid-column: 1;
  grid-row: 3;
  min-width: 50%;
  max-height: 37.5rem;
  overflow-x: auto;
  overflow-y: auto;
}

.admin-section--waitlist {
  grid-column: 1;
  grid-row: 4;
  min-width: 50%;
  max-height: 37.5rem;
  overflow-x: auto;
  overflow-y: auto;
}

.admin-section--top-creators {
  grid-column: 2;
  grid-row: 2;
  min-width: 50%;
  max-height: 25rem;
  overflow-x: auto;
  overflow-y: auto;
}

.admin-section--recent-activity {
  grid-column: 2;
  grid-row: 3 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  min-width: 50%;
  max-height: 75rem;
  overflow-x: auto;
  overflow-y: auto;
}

.admin-section--export-training {
  grid-column: 1;
}
.admin-section--export-training .admin-export-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}
.admin-section--export-training .admin-export-desc code {
  background: #f0f0f0;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
}
.admin-section--export-training .admin-export-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-section--export-training .admin-btn--export {
  background: var(--Pure-Blue);
  color: var(--White);
  padding: 0.5rem 1rem;
}
.admin-section--export-training .admin-export-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.admin-section {
  background: var(--White);
  border-radius: 1.25rem;
  box-shadow: 0 0.25rem 2rem var(--Box-Shadow);
  padding: 2rem;
  margin-bottom: 0;
  font-family: var(--font-family-open-sans);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.admin-stat-value {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--Pure-Blue);
  font-family: var(--font-family-roboto);
}

.admin-stat-label {
  font-size: 1rem;
  color: var(--Black);
}

.admin-section-title {
  font-size: 2rem;
  font-family: var(--font-family-roboto);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.admin-section-subtitle {
  font-size: 1.2rem;
  font-family: var(--font-family-roboto);
  font-weight: 500;
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.3125rem;
  border-bottom: 0.0625rem solid var(--Dusty-Gray);
}

.admin-btn {
  font-family: var(--font-family-roboto);
  font-size: 1em;
  border-radius: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

.admin-btn--edit {
  background: var(--Pure-Blue-light);
  color: var(--Pure-Blue);
}

.admin-btn--delete {
  background: var(--trial-period-light-red-colour);
  color: var(--Red);
}

.admin-btn--approve {
  background: var(--Pure-Blue);
  color: var(--White);
}

.admin-btn--reject {
  background: var(--Red);
  color: var(--White);
}

.admin-list {
  list-style: disc inside;
  padding-left: 1.5rem;
}

.admin-list--top-creators,
.admin-list--activity {
  font-size: 1em;
  color: var(--Black);
  font-family: var(--font-family-open-sans);
}

.admin-tabs .admin-tab {
  background: rgba(0, 37, 230, 0.18);
  border: 0.0625rem solid rgba(0, 37, 230, 0.18);
  border-radius: 1.25rem;
  margin: 0.25rem;
  padding: 0.5rem 1.125rem;
  font-family: var(--font-family-roboto);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.admin-tabs .admin-tab.active {
  background: var(--Pure-Blue);
  color: var(--White);
  border: 0.0625rem solid var(--Pure-Blue);
  border-radius: 1.25rem;
}

.admin-tabs .admin-tab:not(.active):hover {
  background: rgba(0, 37, 230, 0.35);
  color: var(--White);
  border: 0.0625rem solid rgba(0, 37, 230, 0.35);
  border-radius: 1.25rem;
}

.admin-activity-search {
  width: 100%;
  max-width: 32.5rem;
  padding: 0.75rem 2.75rem 0.75rem 1.125rem;
  font-size: 1em;
  border: 0.09375rem solid var(--Pure-Blue);
  border-radius: 1.5rem;
  background: var(--bg-light);
  color: var(--Black);
  font-family: var(--font-family-roboto);
  font-weight: 400;
  margin: 1.125rem 0 1.5rem 0;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 37, 230, 0.06);
  position: relative;
}

.admin-activity-search:focus {
  border-color: var(--Pure-Blue);
  background: var(--White);
  box-shadow: 0 0.125rem 0.75rem rgba(0, 37, 230, 0.10);
}

.admin-activity-search::placeholder {
  color: #8ca6e6;
  font-weight: 400;
  opacity: 1;
  font-family: var(--font-family-roboto);
}

.admin-activity-search {
  background-image: url('data:image/svg+xml;utf8,<svg fill="rgb(0,37,230)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.9 14.32a8 8 0 111.41-1.41l4.38 4.37a1 1 0 01-1.42 1.42l-4.37-4.38zm-4.9.68A6 6 0 1010 2a6 6 0 00-2 11.68z"/></svg>');
  background-repeat: no-repeat;
  background-size: 1.375rem 1.375rem;
  background-position: right 0.875rem center;
}

/* =======================
   MEDIA QUERIES
   ======================= */

/* 992px and below: Tablets */
/* !important: over the New design's body.auth-page .auth-content-area */
@media (max-width: 992px) {

  .auth-content-area {
    order: 1;
    width: 98vw !important;
    padding: 0.75rem 2vw !important;
    background-color: var(--bg-light);
  }

  .admin-dashboard-main--custom {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1rem 0;
    gap: 1.125rem;
    max-width: 98vw;
  }

  .admin-section--stats,
  .admin-section--user-types,
  .admin-section--user-management,
  .admin-section--waitlist,
  .admin-section--export-training,
  .admin-section--top-creators,
  .admin-section--recent-activity {
    grid-column: 1;
    grid-row: auto;
    max-width: 75vw;
  }

}

/* 768px and below: Tablets/large phones */
/* !important: over the New design's body.auth-page .auth-content-area */
@media (max-width: 768px) {

  .auth-content-area {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    padding: 0.75rem 2vw !important;
    box-sizing: border-box;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* 600px and below: Phones */
/* !important: over .hide-desktop's !important */
@media (max-width: 600px) {

  .auth-page .name-row.hide-mobile {
    display: none !important;
  }

  .auth-form-row {
    max-width: 80vw;
  }

  .auth-btn-row button {
    max-width: 80vw;
    box-sizing: border-box;
  }

  /* !important: over the inline max-width a script sets */
  .form-title-row {
    max-width: 80vw !important;
  }

  /* !important: over the New design's body.auth-page .auth-page-hero-imag… */
  .auth-page-hero-image-wrapper {
    display: none !important;
  }

  /* !important: over the New design's body.auth-page .auth-body */
  .auth-body {
    height: 85vh !important;
  }

  /* !important: over the New design's body.auth-page .auth-content-area */
  .auth-content-area,
  .form-outer-wrapper {
    display: block;
    min-width: 0 !important;
    max-width: 90vw !important;
    padding: 1.2rem 2vw !important;
    box-sizing: border-box;
    overflow: hidden;
    align-content: center;
  }

  /* !important: over body's !important */
  body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100vw;
  }

  #PrivacyPolicy {
    top: 68px;
    height: calc(100vh - 68px);
    display: block;
  }

  /* !important: over the inline width a script sets (and more) */
  #policy-modal-content {
    width: 100vw !important;
    height: 90% !important;
    max-height: calc(100vh - 100px);
    padding: 1rem;
    padding-bottom: 1vh;
    border-radius: 0;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
  }

  #PrivacyPolicy .agreement-section {
    flex-shrink: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
  }

  /* !important: over the inline display a script sets */
  #PrivacyPolicy .agreement-label {
    margin-bottom: 0.75rem;
    display: block !important;
  }

  /* !important: over .btn-rounded's !important */
  #policy-accept-btn {
    width: 100%;
    margin-bottom: 0 !important;
  }

  .policy-content {
    max-height: 65vh;
  }
}

/* ---- The redesign review's fixes for every page (13 Nov 2026) ---- */

/* The sign-up, log-in and reset pages on a tablet: the form kept a fixed 680 px and the picture got what was left,
   cut off at the right edge. Up to 1024 px wide, the form alone, centred. */
@media (max-width: 1024px) {
  /* Log in and Reset password: .form-inner is the column's full width up to 992 px, which left their 400 px form at its
     left edge; its parts in the middle, as Sign up's. */
  .auth-body .form-inner > * { width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
}
/* On a tablet the whole picture beside the form (13 Nov 2026, Israa: "show the picture on the tablet", as moved into
   view on the canvas): the form in a little over half the width, the picture fitted into the rest. A phone (600 px and
   under) has the form alone, as before. */
/* !important: over the width of a rule loaded later (and more) */
@media (min-width: 601px) and (max-width: 1024px) {
  .auth-body .auth-content-area { flex: 0 0 52%; width: 52% !important; max-width: 52% !important; min-width: 0 !important; }
  /* !important: over the New design's body.auth-page .form-inner */
  .auth-body .form-inner { width: 100% !important; min-width: 0; max-width: 100% !important; }
  /* !important: over the New design's body.auth-page .auth-page-hero-imag… */
  .auth-body .auth-page-hero-image-wrapper {
    display: flex !important;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
  }
  .auth-body .auth-page-hero-image {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
  }
}

/* ---- What was left from the redesign review (13 Nov 2026, evening: "fix what is left") ---- */

/* Sign up: first and last name at every size, one above the other on a phone; the free trial line on a phone too. */
.auth-page .trial-line { flex-wrap: wrap; }

/* ==== The style system (13 Nov 2026, Israa: "do all the other recommendations"): the canvas's Style boards made the
   site's. The tokens are on :root (--ds-*), and the headings, buttons and fields are set where they are defined; here
   the body's type, placeholders, the sizes that had their own, one kind of tab, switches, Legal's text. ==== */
/* !important: over new_design/auth's body.auth-page .form-title-row :is(… */
.auth-page .form-title-row h3,
.auth-page h3#signup-header-text { font-size: var(--ds-size-2) !important; }

/* ===== Account and Library round, 15 Nov 2026 (site account helper) ===== */

/* Sign up: a line under the code boxes for Resend (B-ST6), and the terms when they couldn't be loaded. */
.resend-status { margin: 8px 0 0; font-size: 0.9375rem; color: #303850; }
.resend-status[data-kind="error"] { color: #B3261E; }
.terms-load-failed { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
.terms-load-failed p { margin: 0; }

