/* Precompiled from SCSS for Odoo asset-safety. */
:root {
  --tp-login-gold: #eca812;
  --tp-login-gold-hover: #f5c02e;
  --tp-login-gold-deep: #d9920a;
  --tp-pl-input-bg: #f3f4f6;
  --tp-pl-input-border: #e5e7eb;
  --tp-pl-text-muted: #6b7280;
  --tp-pl-text-label: #374151;
}
/* /web/login uses this stylesheet directly.
   IMPORTANT: every shell reset must stay scoped to the login page.
   An earlier precompiled version reset #wrapwrap/main/header globally, which
   removed the 200px dashboard top spacing and made /my/dashboard sit under
   the fixed website header.  Keep the login top-fix without touching any
   other website route. */
html:has(.tp-layout-login),
body:has(.tp-layout-login),
#wrapwrap:has(.tp-layout-login),
#wrapwrap:has(.tp-layout-login) > main,
#wrapwrap:has(.tp-layout-login) main {
  margin: 0 !important;
  padding: 0 !important;
}
#wrapwrap:has(.tp-layout-login) {
  background: #fff !important;
}
#wrapwrap:has(.tp-layout-login),
body:has(.tp-layout-login) {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  background: #fff !important;
}
#wrapwrap:has(.tp-layout-login) > header,
#wrapwrap:has(.tp-layout-login) header,
#wrapwrap:has(.tp-layout-login) > footer,
#wrapwrap:has(.tp-layout-login) footer,
#wrapwrap:has(.tp-layout-login) #top,
#wrapwrap:has(.tp-layout-login) #footer,
#wrapwrap:has(.tp-layout-login) .o_footer {
  display: none !important;
}
#wrapwrap:has(.tp-layout-login) main {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
.tp-layout-login {
  background: #fff;
}
.tp-layout-login #top,
.tp-layout-login header,
.tp-layout-login footer,
.tp-layout-login .o_footer,
.tp-layout-login #footer {
  display: none !important;
}
.tp-layout-login #wrap {
  padding: 0 !important;
  margin: 0 !important;
}
.pl-page {
  width: 100%;
}
.pl-split {
  display: flex;
  flex-direction: row;
  direction: ltr;
  width: 100%;
}
.pl-form-col {
  flex: 0 0 50%;
  max-width: 50%;
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
  box-sizing: border-box;
  background: #fff;
}
.pl-hero-col {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
  border-top-left-radius: 2rem;
}
.pl-hero-col > .pl-editor-zone,
.pl-hero-col > .pl-editor-zone > section {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.pl-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 769px) {
#wrapwrap:has(.tp-layout-login) {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
#wrapwrap:has(.tp-layout-login) main {
  min-height: 0 !important;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.tp-layout-login,
.tp-layout-login #wrap,
.pl-page,
.pl-split,
.pl-form-col,
.pl-hero-col {
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
}
.pl-form-col {
  overflow-x: hidden;
  overflow-y: auto;
}
}
.pl-step {
  width: 100%;
  max-width: 380px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  animation: pl-fade-in 0.3s ease;
}
.pl-step--active {
  display: flex;
}
.pl-step--hidden {
  display: none !important;
}
@keyframes pl-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pl-brand {
  text-align: start;
  margin-bottom: 2rem;
}
.pl-brand--compact {
  margin-bottom: 1.75rem;
}
.pl-brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin: 0 0 1rem;
  display: block;
}
.pl-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.pl-title--gold {
  color: var(--tp-login-gold);
}
.pl-subtitle {
  font-size: 0.9rem;
  color: var(--tp-pl-text-muted);
  margin: 0;
  line-height: 1.6;
}
.pl-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid #eee;
}
.pl-tab-r {
  display: none;
}
.pl-tab-l {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tp-pl-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  border-radius: 8px 8px 0 0;
}
.pl-tab-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.65;
}
.pl-tab-r:checked + .pl-tab-l {
  color: #111;
  background: #fff;
  border-bottom-color: var(--tp-login-gold);
}
.pl-tab-r:checked + .pl-tab-l .pl-tab-ico {
  opacity: 1;
}
.pl-form {
  width: 100%;
}
.pl-panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pl-panel--hidden {
  display: none !important;
}
.pl-fg {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.pl-fg label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tp-pl-text-label);
}
.pl-fg input {
  width: 100%;
  box-sizing: border-box;
  background: var(--tp-pl-input-bg);
  border: 1px solid var(--tp-pl-input-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
}
.pl-fg input::placeholder {
  color: #9ca3af;
}
.pl-fg input:focus {
  border-color: var(--tp-login-gold);
  box-shadow: 0 0 0 3px rgba(236, 168, 18, 0.15);
}
.pl-fg input.err {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.pl-pw-wrap {
  position: relative;
}
.pl-pw-wrap input {
  padding-left: 2.75rem;
}
.pl-pw-toggle {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.6;
}
.pl-pw-toggle:hover {
  opacity: 1;
}
.pl-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  direction: ltr;
}
.pl-otp-cell {
  width: 56px;
  height: 56px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--tp-pl-input-bg);
  border: 1px solid var(--tp-pl-input-border);
  border-radius: 10px;
  outline: none;
  color: #111;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pl-otp-cell:focus {
  border-color: var(--tp-login-gold);
  box-shadow: 0 0 0 3px rgba(236, 168, 18, 0.15);
}
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.pl-btn--primary {
  background: var(--tp-login-gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(236, 168, 18, 0.35);
}
.pl-btn--primary:hover:not(:disabled) {
  background: var(--tp-login-gold-hover);
  box-shadow: 0 8px 22px rgba(236, 168, 18, 0.45);
}
.pl-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.pl-btn--wide {
  margin-top: 1.25rem;
}
.pl-btn-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.pl-link-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  background: none;
  border: none;
  color: var(--tp-pl-text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 0.35rem;
}
.pl-link-btn:hover:not(:disabled) {
  color: var(--tp-login-gold);
}
.pl-link-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pl-link-btn--back {
  margin-top: 0.25rem;
}
.pl-timer {
  display: none;
  text-align: center;
  font-size: 0.78rem;
  color: var(--tp-pl-text-muted);
  margin-top: 0.25rem;
}
.pl-timer.show {
  display: block;
}
.pl-timer strong {
  color: var(--tp-login-gold);
}
.pl-err-banner {
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #dc2626;
  margin-bottom: 1rem;
}
.pl-err-banner.show {
  display: flex;
}
.pl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  color: #fff;
  border: 1px solid rgba(236, 168, 18, 0.55);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  direction: rtl;
  font-family: inherit;
}
@media (max-width: 768px) {
.pl-split {
  flex-direction: column;
}
.pl-form-col {
  flex: 1 1 auto;
  max-width: 100%;
  min-height: 100vh;
  height: auto;
  max-height: none;
  padding: 2rem 1.25rem 2.5rem;
  justify-content: center;
  overflow-y: visible;
}
.pl-hero-col {
  display: none;
}
.pl-otp-cell {
  width: 52px;
  height: 52px;
}
}
@media (max-width: 380px) {
.pl-otp-boxes {
  gap: 0.5rem;
}
.pl-otp-cell {
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
}
}
.pl-form-shell {
  width: 100%;
  max-width: 420px;
}
.pl-editor-zone--brand,
.pl-editor-zone--form-bottom {
  width: 100%;
}
.pl-editor-zone--brand .s_text_block {
  padding: 0;
}
.pl-editor-zone--hero,
.pl-editor-zone--hero > section {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.pl-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pl-small-link {
  color: var(--tp-login-gold-deep);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.pl-small-link:hover {
  color: var(--tp-login-gold);
  text-decoration: underline;
}
.pl-small-link--center {
  display: block;
  margin-top: 12px;
  text-align: center;
}
body.editor_enable #wrapwrap:has(.tp-layout-login),
body.o_is_editable #wrapwrap:has(.tp-layout-login) {
  height: auto;
  max-height: none;
  overflow: visible;
}
body.editor_enable .tp-layout-login,
body.editor_enable .tp-layout-login #wrap,
body.editor_enable .pl-page,
body.editor_enable .pl-split,
body.editor_enable .pl-form-col,
body.editor_enable .pl-hero-col,
body.o_is_editable .tp-layout-login,
body.o_is_editable .tp-layout-login #wrap,
body.o_is_editable .pl-page,
body.o_is_editable .pl-split,
body.o_is_editable .pl-form-col,
body.o_is_editable .pl-hero-col {
  height: auto;
  max-height: none;
  min-height: 100vh;
}
body.editor_enable .pl-form-col,
body.o_is_editable .pl-form-col {
  overflow: visible;
}
@media (max-width: 768px) {
.pl-form-shell {
  max-width: 100%;
}
}

/* 3.6.6: /web/login must stay visually stable even when Bootstrap/frontend
   assets are temporarily unavailable.  Do not rely on Bootstrap's h-100. */
.pl-hero-col .pl-editor-zone--hero,
.pl-hero-col .pl-editor-zone--hero > section,
.pl-hero-col .pl-editor-zone--hero .pl-hero-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.pl-hero-col .pl-editor-zone--hero {
  overflow: hidden;
}
.pl-hero-col .pl-editor-zone--hero > section {
  margin: 0;
  padding: 0;
}



/* 19.0.3.8.19 — login starts at the top edge; no black/header strip */
#wrapwrap:has(.tp-layout-login),
#wrapwrap:has(.tp-layout-login) main,
.tp-layout-login,
.tp-layout-login #wrap,
.pl-page,
.pl-split {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

#wrapwrap:has(.tp-layout-login),
#wrapwrap:has(.tp-layout-login) main,
.tp-layout-login,
.tp-layout-login #wrap,
.pl-page,
.pl-split,
.pl-form-col,
.pl-hero-col {
  min-height: 100vh;
}

.pl-page,
.pl-split {
  height: 100vh;
  max-height: 100vh;
}

@media (min-width: 769px) {
  .pl-form-col,
  .pl-hero-col {
    height: 100vh;
    max-height: 100vh;
  }
}

@media (max-width: 768px) {
  #wrapwrap:has(.tp-layout-login),
  #wrapwrap:has(.tp-layout-login) main,
  .tp-layout-login,
  .tp-layout-login #wrap,
  .pl-page,
  .pl-split {
    min-height: 100vh;
  }
}


/* Final shell guard, scoped strictly to /web/login.
   web_login.css is part of web.assets_frontend too, so unscoped html/body/
   #wrapwrap rules here would break /my/dashboard and other portal pages. */
html:has(.tp-layout-login),
body:has(.tp-layout-login),
#wrapwrap:has(.tp-layout-login),
#wrapwrap:has(.tp-layout-login) > main,
#wrapwrap:has(.tp-layout-login) main,
.tp-layout-login, .tp-layout-login #wrap, .pl-page, .pl-split {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#wrapwrap:has(.tp-layout-login) > header,
#wrapwrap:has(.tp-layout-login) header,
#wrapwrap:has(.tp-layout-login) > footer,
#wrapwrap:has(.tp-layout-login) footer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pl-page > .pl-split {
  margin-top: 0 !important;
}
