/* Travel Brand for Business — company sign-in page (Views/Account/Login.cshtml, R1). Design tokens only. */

.acc-page { padding-top: 32px; padding-bottom: 48px; }
.acc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: 980px; margin: 0 auto; background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: 24px; box-shadow: var(--tb-shadow-lg); overflow: hidden; animation: acc-in .35s var(--tb-ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Photo side */
.acc-side { position: relative; min-height: 520px; color: var(--tb-on-strong); }
.acc-side__bg { position: absolute; inset: 0; }
.acc-side__bg img { width: 100%; height: 100%; object-fit: cover; }
.acc-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tb-ink-rgb), .1) 20%, rgba(var(--tb-ink-rgb), .82)); }
.acc-side__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
.acc-side__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.acc-side__title { margin: 0 0 14px; font-family: var(--tb-font-display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.acc-side__list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; font-size: 14px; }
.acc-side__list li { display: flex; align-items: center; gap: 10px; }
.acc-side__list .bi { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(var(--tb-primary-rgb), .85); font-size: 14px; }

/* Form side */
.acc-main { padding: 36px 40px; }
.acc-title { margin: 0 0 4px; font-family: var(--tb-font-display); font-size: 26px; color: var(--tb-text-strong); }
.acc-sub { margin: 0 0 20px; font-size: 14px; color: var(--tb-text-muted); }
.acc-form { display: grid; gap: 14px; }
.acc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acc-field .form-label { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--tb-text-strong); }
.acc-input { position: relative; }
.acc-input > .bi { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tb-text-subtle); pointer-events: none; }
.acc-input .form-control { height: 46px; padding-left: 38px; border-radius: 12px; }
.acc-input .form-control:focus { border-color: var(--tb-primary); box-shadow: 0 0 0 3px rgba(var(--tb-primary-rgb), .18); }
.acc-input .form-control.input-validation-error { border-color: var(--tb-danger); }
.acc-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--tb-text-muted); }
.acc-eye:hover { background: var(--tb-surface-muted); color: var(--tb-text-strong); }
.acc-input:has(.acc-eye) .form-control { padding-right: 44px; }
.acc-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--tb-text-muted); }
.acc-err, .acc-err span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--tb-danger); }
.acc-err:empty, .field-validation-valid { display: none; }
.acc-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 4px; border-radius: 12px; font-weight: 700; }
.acc-submit .bi { transition: transform .2s var(--tb-ease); }
.acc-submit:hover .bi { transform: translateX(3px); }

.acc-note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.acc-note--ok { background: var(--tb-success-soft); color: var(--tb-success); }
.acc-note--bad { background: var(--tb-danger-soft); color: var(--tb-danger); }
.acc-note--bad ul { margin: 0; padding-left: 0; list-style: none; }
.validation-summary-valid.acc-note--bad { display: none; }
.acc-switch { margin: 18px 0 0; font-size: 14px; text-align: center; color: var(--tb-text-muted); }
.acc-switch a { font-weight: 700; }
.acc-demo { display: flex; gap: 6px; margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--tb-border); font-size: 12px; color: var(--tb-text-subtle); }

@media (max-width: 767.98px) {
    .acc-page { padding-top: 16px; }
    .acc-card { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
    .acc-side { min-height: 170px; }
    .acc-side__list { display: none; }
    .acc-side__text { padding: 18px; }
    .acc-side__title { margin: 0; font-size: 20px; }
    .acc-main { padding: 22px 18px; }
    .acc-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Company sign-in (R1; clean split V3): a full-screen travel photo beside a calm sign-in panel ---------- */
/* The sign-in page has no site header or footer: the panel carries the brand. */
.page-signin .site-header, .page-signin .site-footer, .page-signin .tpl-switch { display: none; }
.page-signin { background: var(--tb-surface); }
.si-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, 1fr); min-height: 100vh; min-height: 100dvh; }

/* Left: the photo */
.si-photo { position: relative; overflow: hidden; display: flex; align-items: flex-end; background: var(--tb-primary-ink); }
.si-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.si-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tb-ink-rgb), .05) 30%, rgba(var(--tb-ink-rgb), .72) 100%); }
.si-photo__text { position: relative; z-index: 1; padding: 48px 56px; color: var(--tb-on-strong); max-width: 620px; }
.si-photo__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: var(--tb-radius-pill); background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; }
.si-photo__title { margin: 0 0 18px; color: var(--tb-on-strong); font-family: var(--tb-font-display); font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.si-photo__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .9); }
.si-photo__points li { display: flex; align-items: center; gap: 10px; }
.si-photo__points .bi { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); font-size: 13px; }

/* Right: the panel */
.si-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--tb-surface); }
.si-panel__inner { width: 100%; max-width: 380px; animation: acc-in .35s var(--tb-ease); }
.si-brandmark { display: flex; align-items: center; gap: 10px; margin: 0 0 36px; color: var(--tb-text-strong); font-size: 16px; font-weight: 600; letter-spacing: .14em; }
.si-brandmark b { color: var(--tb-primary); font-weight: 700; }
.si-brandmark em { margin-left: 4px; padding: 3px 10px; border-radius: var(--tb-radius-pill); background: var(--tb-accent-violet); color: var(--tb-on-strong); font-size: 11.5px; font-style: normal; font-weight: 600; letter-spacing: .02em; }
.si-title { margin: 0 0 4px; font-family: var(--tb-font-display); font-size: 30px; font-weight: 800; letter-spacing: -.01em; color: var(--tb-text-strong); }
.si-sub { margin: 0 0 26px; font-size: 15px; color: var(--tb-text-muted); }
.si-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; font-size: 12.5px; color: var(--tb-text-subtle); }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--tb-border); }
.si-sso { display: grid; gap: 10px; }
.si-sso__btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1px solid var(--tb-border-strong); border-radius: 12px; background: var(--tb-surface); color: var(--tb-text-strong); font-size: 15px; font-weight: 600; transition: border-color .15s, background-color .15s; }
.si-sso__btn:hover { border-color: var(--tb-text-muted); background: var(--tb-surface-muted); }
.si-sso__btn:focus-visible { outline: 3px solid rgba(var(--tb-primary-rgb), .35); outline-offset: 2px; }
.si-sso__btn .bi { font-size: 18px; }
.si-democode { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--tb-accent-amber-soft); color: var(--tb-warn-ink); font-size: 13.5px; }
.si-democode .bi { color: var(--tb-warn-icon); }
.si-democode__code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 17px; letter-spacing: .18em; color: var(--tb-text-strong); }
.si-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 18px; letter-spacing: .3em; }
.si-again { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 13.5px; }
.si-again form { margin: 0; }

/* Demo users: folded under a small link */
.si-demo { margin-top: 22px; border-top: 1px solid var(--tb-border); padding-top: 14px; }
.si-demo > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--tb-text-muted); }
.si-demo > summary::-webkit-details-marker { display: none; }
.si-demo > summary:hover { color: var(--tb-text-strong); }
.si-demo > summary:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 3px; border-radius: 6px; }
.si-demo > summary .bi { font-size: 12px; transition: transform .15s; }
.si-demo[open] > summary .bi { transform: rotate(180deg); }
.si-demo__people { display: grid; gap: 6px; margin-top: 10px; }
.si-demo__people form { margin: 0; }
.si-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--tb-border); border-radius: 12px; background: var(--tb-surface); text-align: left; color: var(--tb-text); transition: border-color .15s, background-color .15s; }
.si-person:hover { border-color: var(--tb-border-strong); background: var(--tb-surface-muted); }
.si-person:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 2px; }
.si-person > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }
.si-person b { display: block; font-size: 13.5px; color: var(--tb-text-strong); }
.si-person small { display: block; font-size: 12px; color: var(--tb-text-muted); }
.si-person > .bi { color: var(--tb-text-subtle); }
.si-person__av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--tb-on-strong); background: var(--tb-primary); }
.si-person--approver .si-person__av { background: var(--tb-secondary); }
.si-person--admin .si-person__av { background: var(--tb-accent-violet); }
.si-demo__hint { display: block; margin-top: 8px; font-size: 11.5px; color: var(--tb-text-muted); overflow-wrap: anywhere; }
.si-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0; font-size: 12.5px; color: var(--tb-text-muted); }
.si-foot .bi { color: var(--tb-success); }
.si-foot a { font-weight: 700; }

/* Tablets: the photo becomes a band above the panel; phones: a short strip */
@media (max-width: 991.98px) {
    .si-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .si-photo { min-height: 260px; }
    .si-photo__text { padding: 28px 32px; }
    .si-photo__title { font-size: 32px; margin-bottom: 12px; }
    .si-panel { align-items: flex-start; padding: 32px 24px 40px; }
    .si-brandmark { margin-bottom: 24px; }
}
@media (max-width: 575.98px) {
    .si-photo { min-height: 170px; }
    .si-photo__text { padding: 20px 16px; }
    .si-photo__eyebrow { margin-bottom: 8px; font-size: 12px; }
    .si-photo__title { font-size: 25px; margin: 0; }
    .si-photo__title br { display: none; }
    .si-photo__points { display: none; }
    .si-panel { padding: 24px 16px 32px; }
    .si-title { font-size: 26px; }
    .si-sub { margin-bottom: 20px; }
}
