/* ==========================================================================
   Travelog Online — anonymous account pages, on the approved Kendo redesign
   Sign In · Recover Password · Reset Password · Unlock Account · Unlock Verify
   --------------------------------------------------------------------------
   Replaces css/tol-signin.css (the 2 Aug interim restyle).

   The brand layer itself is /landing/assets/css/travelog-kendo.css — the same
   file the marketing site and the express-interest page load — so the auth
   shell (.auth / .auth-brand / .auth-main / .field / .k-button.k-primary)
   is defined ONCE and these pages only add what the application layout
   makes necessary:

     1. the layout's chrome (navbar, footer, 1170px .container, dark theme)
        has to get out of the way;
     2. site.css / custom-material.css restyle Kendo with !important
        (10.5px buttons, 1.92em inputs, grey checkboxes, #44aafd primary),
        and those rules must lose on these pages;
     3. the two-factor panels and the lockout banner that only Sign In has.

   Scope: this file is only ever linked from the five anonymous Account views,
   so the unscoped rules in section 1 cannot leak into the application.
   Decided 2026-08-02: these pages are pre-authentication and always render
   LIGHT, whatever the user's saved theme is.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Neutralise the application layout
   -------------------------------------------------------------------------- */
html, body {
  background-color: #fff !important;
  color: #3A4552 !important;
  overflow-x: hidden;
}
/* Bootstrap 3 sets the root to 10px; the brand layer sizes everything in rem
   against the 16px root the landing site has. */
html { font-size: 16px !important; }

/* The navbar and footer are hidden in the stylesheet, not only by the view's
   $('header').hide(), so there is no flash of application chrome on load. */
header.navbar, footer { display: none !important; }

/* Bootstrap 3's .container is 1170px wide with 15px gutters, and site.css
   pins every .container to min-width 1260px; the auth shell is a full-viewport
   two-column grid that must be allowed to shrink to a phone. */
.container.body-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #fff !important;
}
#tl-notification-page { display: none; }   /* the page-level slot; Sign In has its own */

body.k-content, .k-content { background-color: #fff !important; }

/* --------------------------------------------------------------------------
   2. Brand layer over the application's Kendo overrides
   Everything is scoped to .tol-auth and carries !important because site.css
   and custom-material.css already use it on the same properties.
   -------------------------------------------------------------------------- */
.tol-auth,
.tol-auth .k-widget,
.tol-auth .k-button,
.tol-auth .k-input,
.tol-auth .k-textbox,
.tol-auth input,
.tol-auth label {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

/* Links — custom-material.css colours every anchor with a 7-:not() selector */
.tol-auth a:not(.k-button) { color: #16549C !important; font-weight: 500; text-decoration: none; }
.tol-auth a:not(.k-button):hover { color: #0E3A6E !important; text-decoration: underline; }
.tol-auth .auth-brand a { color: inherit !important; }

/* Text boxes ------------------------------------------------------------- */
.tol-auth .k-textbox {
  width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  border: 1px solid #DEE4ED !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
}
.tol-auth .k-textbox > .k-input,
.tol-auth .k-input {
  height: auto !important;
  min-height: 0 !important;
  padding: 11px 14px !important;
  font-size: 16px !important;
  line-height: 2.0714em !important;   /* Kendo Material's own; gives the 57px field the landing site has */
  color: #131A24 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
}
.tol-auth .k-textbox:focus-within,
.tol-auth .k-textbox.k-state-focused,
.tol-auth input.k-textbox:focus {
  border-color: #1B65BD !important;
  box-shadow: 0 0 0 3px rgba(27, 101, 189, .16) !important;
}
.tol-auth .k-textbox.k-invalid,
.tol-auth .k-textbox.k-state-invalid,
.tol-auth input.k-invalid { border-color: #C0392B !important; }

/* A bare input.k-textbox (Html.PasswordFor on Reset Password) has no Kendo
   wrapper, so it carries the box itself: same border, padding and 57px height
   as a wrapped field. */
.tol-auth input.k-textbox {
  display: block;
  width: 100% !important;
  min-height: 57px !important;
  height: auto !important;
  padding: 11px 14px !important;
  font-size: 16px !important;
  line-height: 2.0714em !important;
  color: #131A24 !important;
  background: #fff !important;
  border: 1px solid #DEE4ED !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* Password reveal: the input sits inside a Kendo wrapper, so the button must
   clear the wrapper's border and the browser's own reveal control. */
.tol-auth .pwd { position: relative; }
.tol-auth .pwd .k-textbox > .k-input,
.tol-auth .pwd input.k-textbox { padding-right: 44px !important; }
.tol-auth .pwd input::-ms-reveal { display: none; }
.tol-auth .pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none !important; border: 0 !important; color: #66707D;
  padding: 6px; cursor: pointer; line-height: 0; min-width: 0 !important;
  z-index: 2;
}
.tol-auth .pwd-toggle:hover { color: #0E3A6E; }

/* Checkbox --------------------------------------------------------------- */
.tol-auth .auth-remember { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; }
.tol-auth .k-checkbox {
  width: 18px !important; height: 18px !important; margin: 0 !important;
  background-color: #fff !important; border: 1px solid #A5AEB9 !important; border-radius: 3px !important;
}
.tol-auth .k-checkbox:checked {
  background-color: #0E3A6E !important; border-color: #0E3A6E !important; color: #fff !important;
}
.tol-auth .k-checkbox:focus { box-shadow: 0 0 0 3px rgba(27, 101, 189, .2) !important; }
.tol-auth .k-checkbox-label {
  padding: 0 !important; margin: 0 !important; vertical-align: middle !important;
  color: #3A4552 !important; font-size: .875rem !important; font-weight: 400 !important; line-height: 1.5;
}

/* Buttons ---------------------------------------------------------------- */
.tol-auth .k-button {
  font-size: .9375rem !important;
  font-weight: 600 !important;
  padding: 11px 18px !important;
  min-width: 0 !important;
  border-radius: 4px !important;
  text-transform: none !important;
  letter-spacing: .01em;
  box-shadow: none !important;
  line-height: 1.25 !important;
  background-image: none !important;
}
.tol-auth .k-button .k-icon { display: none !important; }
.tol-auth .k-button.k-primary {
  background-color: #0E3A6E !important; border-color: #0E3A6E !important; color: #fff !important;
}
.tol-auth .k-button.k-primary:hover,
.tol-auth .k-button.k-primary.k-state-hover {
  background-color: #16549C !important; border-color: #16549C !important; color: #fff !important;
}
.tol-auth .k-button.k-primary:active,
.tol-auth .k-button.k-primary.k-state-active {
  background-color: #0A2C55 !important; border-color: #0A2C55 !important;
}
.tol-auth .k-button:not(.k-primary):not(.k-flat) {
  background-color: #fff !important; border: 1px solid #0E3A6E !important; color: #0E3A6E !important;
}
.tol-auth .k-button:not(.k-primary):not(.k-flat):hover {
  background-color: #F4F7FD !important; border-color: #0E3A6E !important; color: #0E3A6E !important;
}
.tol-auth .k-button.k-flat {
  background: none !important; border-color: transparent !important; color: #16549C !important;
}
.tol-auth .k-button.k-flat:hover { color: #0E3A6E !important; background: #F4F7FD !important; }
.tol-auth .k-button.tol-block { display: flex !important; width: 100% !important; justify-content: center; }
.tol-auth .k-button[disabled],
.tol-auth .k-button.k-state-disabled { opacity: .55; cursor: default; }

/* A row of two actions (Submit / Cancel) */
.tol-auth .auth-actions { display: flex; gap: 12px; margin-top: 8px; }
.tol-auth .auth-actions .k-button { flex: 1 1 0; justify-content: center; display: flex !important; }

/* Validation messages */
.tol-auth .k-tooltip-validation,
.tol-auth .k-invalid-msg {
  background: #FDEBE7 !important; border: 1px solid #F3B6A8 !important; color: #8C2312 !important;
  border-radius: 4px; padding: 4px 8px; font-size: .875rem; box-shadow: none !important;
  margin-top: 4px; display: inline-block; position: static !important;
}
.tol-auth .k-tooltip-validation .k-icon,
.tol-auth .k-invalid-msg .k-icon,
.tol-auth .k-tooltip-validation .k-callout { display: none !important; }

/* reCAPTCHA slot: hidden until a site key renders a widget into it */
.tol-auth .tol-recaptcha { margin: 0 0 16px; }
.tol-auth .tol-recaptcha:empty { display: none; }
@media (max-width: 400px) {
  .tol-auth .tol-recaptcha { transform: scale(.85); transform-origin: 0 0; }
}

/* --------------------------------------------------------------------------
   3. Sign In only — notification slot, two-factor panels, lockout banner
   -------------------------------------------------------------------------- */
/* Global.DisplayMessage writes into this slot; SignIn.Submit also sets an
   inline margin-left of 252px and a max-width of 400px on it that were
   positioning hacks for the old layout. Neutralised here rather than by
   editing the SignIn module, which is kept verbatim. */
.tol-auth #tl-notification-sign-in {
  max-width: 100% !important; margin: 0 0 16px !important; position: relative; z-index: 5;
}
.tol-auth #tl-notification-sign-in .k-notification { border-radius: 4px; font-size: 14px !important; }
.tol-auth #tl-notification-sign-in .k-notification-wrap { padding: 10px 12px; }

/* The panels are toggled by SignIn.js with display: table-cell. Inside the
   auth column that makes an anonymous, shrink-to-fit table, so a percentage
   width means nothing (measured: the e-mail panel came out 247px wide). The
   panel's box is sized in container units against the form wrapper instead. */
.tol-auth .tl-form-container { container-type: inline-size; width: 100%; }
.tol-auth #Column1, .tol-auth #Column3, .tol-auth #Column4 { width: 100%; box-sizing: border-box; }
.tol-auth #Column3 > .tl-content-box,
.tol-auth #Column4 > .tl-content-box { width: 100cqw; box-sizing: border-box; }
.tol-auth #ColumnSpacer { display: none; }
.tol-auth .tl-content-box,
.tol-auth .tl-content-box .header { border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; }
.tol-auth .auth-2fa-head { margin-bottom: 20px; }
.tol-auth .auth-2fa-head h2 { font-size: 1.5rem; margin: 0 0 8px; }
.tol-auth .auth-2fa-head p { color: #66707D; font-size: .875rem; margin: 0; }
.tol-auth .auth-2fa-help { font-size: .875rem; color: #66707D; margin: 20px 0 0; line-height: 1.5; }
.tol-auth .auth-2fa-help .k-button { margin-top: 12px; }
.tol-auth .auth-resend { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.tol-auth .auth-resend .k-button { padding: 8px 14px !important; font-size: .875rem !important; }
.tol-auth #ResendEmailCodeTimer { font-size: .875rem; color: #66707D; position: static !important; top: auto !important; margin: 0 !important; }
.tol-auth .tl-table { display: block; width: 100% !important; }
.tol-auth .tl-table-cell { display: block; width: 100% !important; padding: 0 !important; }

/* The lockout banner is appended to <body> with an inline width of 449px and
   a 10% margin-left, sized for the old 832px form. Inline styles carry no
   !important, so these win. */
#unlockBanner {
  width: auto !important; max-width: 420px !important; margin-left: 0 !important;
  border-radius: 4px; font-family: 'Archivo', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   4. Page-specific furniture
   -------------------------------------------------------------------------- */
.tol-auth .auth-body { padding-top: 48px; padding-bottom: 48px; }
.tol-auth .auth-head h1 { margin: 0; }
/* A wider form (TLD-564 L5, Matthew: "Username/Password width looks a little small"; option A agreed
   26 Oct 2026). The box was 420px including its padding, which left the fields about 290-324px wide in
   a right-hand pane over 1,000px wide. 560px gives 464px fields; the form stays centred. */
.tol-auth .auth-body:not(.auth-body--wide) { max-width: 560px; }
.tol-auth .auth-head h1 { font-size: 44px; }
.tol-auth .auth-env { display: inline-block; margin-top: 8px; font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: #D97F1E; font-weight: 700; }
.tol-auth .auth-alt a { white-space: nowrap; }
.tol-auth .auth-brand .logo img { height: 54px; width: auto; max-width: 100%; }

/* Kendo's progress overlay (kendo.ui.progress) must cover the form, not the page */
.tol-auth form { position: relative; }

/* ...and it must not look like the screen has broken. Kendo's default mask is a
   flat grey fill, so Submit on the Email Authentication step turned the card
   grey from the heading to the resend row - reported by the team as "after
   entering the code, the entire field becomes grey". Every modern screen
   already re-colours this mask (see .k-loading-color in cq-modern.css); the
   sign-in page is not body.cqm, so it never got it. Same treatment here: a
   white veil the card still reads through, with the spinner over the card. */
.tol-auth .k-loading-mask .k-loading-color,
.tol-auth .k-loading-color { background: #fff !important; opacity: .6 !important; }
.tol-auth .k-loading-mask { border-radius: 12px; }

@media (max-width: 900px) {
  .tol-auth .auth-body { padding: 32px 24px; }
  .tol-auth .auth-actions { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Connect to Company, after sign-in (5 Oct 2026 feedback). The picker is a
   Kendo window attached to <body>, outside .tol-auth, so it carries its own
   class (site.js, Global.SelectCustomer) and takes the sign-in page's design
   instead of the application's dark Classic window.
   -------------------------------------------------------------------------- */
.k-window.tl-company-picker{border:0 !important;border-radius:14px !important;overflow:hidden;background:#fff !important;
  box-shadow:0 24px 60px rgba(14,58,110,.22),0 2px 8px rgba(14,58,110,.10) !important;font-family:inherit;color:#3A4552 !important}
.k-window.tl-company-picker .k-window-titlebar{background:var(--tol-blue-900,#0E2A4F) !important;color:#fff !important;
  padding:16px 22px !important;border:0 !important;margin:0 !important;width:auto !important}
.k-window.tl-company-picker .k-window-title{font-size:16px !important;font-weight:600 !important;color:#fff !important}
.k-window.tl-company-picker .k-window-actions .k-button,.k-window.tl-company-picker .k-window-actions .k-icon{color:#fff !important;background:transparent !important;border:0 !important}
.k-window.tl-company-picker .k-window-content{background:#fff !important;color:#3A4552 !important;padding:22px 24px 6px !important;font-size:14px !important}
.k-window.tl-company-picker .k-edit-form-container{width:100% !important;background:#fff !important}
.k-window.tl-company-picker #SelectCustomerDiv,.k-window.tl-company-picker #SwitchCustomerDiv{color:#3A4552 !important;font-size:14px !important;padding-bottom:12px !important}
.k-window.tl-company-picker .form-group{margin:0 !important}
.k-window.tl-company-picker .k-dropdown-wrap,.k-window.tl-company-picker .k-picker-wrap{background:#fff !important;color:#1E293B !important;
  border:1.5px solid #CBD5E1 !important;border-radius:10px !important;box-shadow:none !important;min-height:42px !important}
.k-window.tl-company-picker .k-input,.k-window.tl-company-picker input.k-input{background:#fff !important;color:#1E293B !important;
  font-size:14px !important;height:39px !important;line-height:39px !important;padding:0 12px !important}
.k-window.tl-company-picker .k-select{background:transparent !important;border:0 !important;color:#475569 !important}
.k-window.tl-company-picker .tl-command-bar,.k-window.tl-company-picker .k-edit-buttons{background:#fff !important;border-top:1px solid #EEF2F7 !important;
  margin:18px -24px 0 !important;padding:14px 24px !important;display:flex !important;flex-direction:row-reverse;justify-content:flex-start;gap:10px}
.k-window.tl-company-picker .k-edit-buttons .k-button{height:38px !important;padding:0 18px !important;border-radius:10px !important;font-size:14px !important;
  font-weight:600 !important;text-transform:none !important;box-shadow:none !important}
.k-window.tl-company-picker #CustomerSelectUpdateButton{background:var(--tol-blue-900,#0E2A4F) !important;border:1px solid var(--tol-blue-900,#0E2A4F) !important;color:#fff !important}
.k-window.tl-company-picker #CustomerSelectUpdateButton:hover{background:var(--tol-blue-700,#164A86) !important}
.k-window.tl-company-picker #CustomerSelectUpdateButton .k-icon{color:#fff !important}
.k-window.tl-company-picker #CustomerSelectCancelButton{background:#fff !important;border:1px solid #CBD5E1 !important;color:#334155 !important}
.k-window.tl-company-picker .k-select{height:39px !important;display:flex !important;align-items:center;justify-content:center}
/* The company list opens in a popup attached to <body>: same light design (sign-in pages only load this file). */
#CustomerSelectId-list.k-popup,#CustomerSelectId-list .k-grid-header,#CustomerSelectId-list .k-grid-header th,#CustomerSelectId-list .k-item{background:#fff !important;color:#1E293B !important}
#CustomerSelectId-list.k-popup{border:1px solid #E2E8F0 !important;border-radius:10px !important;box-shadow:0 12px 32px rgba(14,58,110,.18) !important;overflow:hidden}
#CustomerSelectId-list .k-grid-header th{font-weight:600 !important;font-size:12px !important;color:#64748B !important;border-color:#EEF2F7 !important}
#CustomerSelectId-list .k-item:hover,#CustomerSelectId-list .k-item.k-state-hover{background:#EEF4FB !important}
#CustomerSelectId-list .k-item.k-state-selected,#CustomerSelectId-list .k-item.k-state-focused.k-state-selected{background:#DCEAF8 !important;color:#0E2A4F !important}
