/* Fonts */
@font-face {
  font-family: BOG;
  src: url('../fonts/BOG-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: BOG;
  src: url('../fonts/BOG-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: BOG;
  src: url('../fonts/BOG-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: BOG;
  src: url('../fonts/BOG-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: MarkGEO;
  src: url('../fonts/BOG-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: MarkGEO;
  src: url('../fonts/BOG-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: MarkGEO;
  src: url('../fonts/BOG-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: MarkGEO;
  src: url('../fonts/BOG-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'BOG Headline';
  src: url('../fonts/BOG-Headline-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'BOG Headline';
  src: url('../fonts/BOG-Headline-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: MarkGEOCAPS;
  src: url('../fonts/BOG-Headline-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: MarkGEOCAPS;
  src: url('../fonts/BOG-Headline-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

/* Reset & tokens */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-orange: #ff6c1d;
  --color-orange-hover: #e55f15;
  --color-bg-left: #f4f4f4;
  --color-card: #fcfcfc;
  --color-text: rgba(0, 0, 0, 0.92);
  --color-text-secondary: rgba(0, 0, 0, 0.68);
  --color-text-muted: rgba(0, 0, 0, 0.56);
  --color-border: rgba(0, 0, 0, 0.12);
  --color-header-border: rgba(0, 0, 0, 0.08);
  --color-link: #ff6c1d;
  --color-input-bg: #ffffff;
  --shadow-card: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  --radius-card: 12px;
  --radius-input: 8px;
  --radius-btn: 8px;
  /* BOG design tokens (from bd-footer-bottom) */
  --color-invert-component-tr-20: rgba(0, 0, 0, 0.92);
  --color-invert-component-tr-40: rgba(0, 0, 0, 0.68);
  --color-invert-component-tr-50: rgba(0, 0, 0, 0.32);
  --color-invert-component-tr-70: rgba(0, 0, 0, 0.08);
  --color-invert-component-tr-80: rgba(0, 0, 0, 0.04);
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-36: 36px;
  --space-48: 48px;
  --space-64: 64px;
  --border-radius-31: 8px;
}

html,
body {
  height: 100%;
  font-family: MarkGEO, BOG, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout */
.page {
  display: flex;
  min-height: 100vh;
}

.panel-left {
  flex: 0 0 736px;
  max-width: 736px;
  background: var(--color-bg-left);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

.panel-right {
  flex: 1 1 auto;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-header-border);
}

.tabs {
  flex: 1;
  min-width: 0;
  height: 50px;
}

.tabs-scroll {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tabs-inner {
  display: inline-flex;
  align-items: stretch;
  height: 48px;
  min-height: 48px;
}

.tabs-line {
  width: 100%;
  height: 1px;
  background: var(--color-invert-component-tr-70);
  position: relative;
  margin-top: -1px;
  z-index: 1;
}

.tabs-indicator {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--color-orange);
  transform: translateY(-1px);
  transition: transform 200ms ease-in-out, width 200ms ease-in-out;
  will-change: transform, width;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  min-height: 48px;
  padding: 0 var(--space-16);
  margin-left: var(--space-8);
  font-family: 'BOG Headline', MarkGEOCAPS, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-invert-component-tr-20);
  background: transparent;
  border: none;
  transition: color 200ms ease-out, background-color 200ms ease-out;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn.active {
  color: var(--color-orange);
}

.tab-btn:not(.active):hover {
  background: var(--color-invert-component-tr-80);
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  margin-right: 32px;
  padding: 0 8px;
  font-family: BOG, MarkGEO, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  border-radius: 8px;
  transition: background-color 0.2s;
}

.lang-switch:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Logo */
.logo-wrap {
  padding: 16px 32px;
}

.logo {
  display: block;
  height: 36px;
  width: auto;
}

/* Login card */
.login-area {
  width: 100%;
  padding: 0 48px;
  flex: 1;
}

.card {
  width: 640px;
  max-width: 100%;
  margin: 32px auto 0;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 526px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 var(--space-64);
  border-bottom: 1px solid var(--color-invert-component-tr-70);
  flex-shrink: 0;
}

.login-form {
  padding: var(--space-32) var(--space-64) var(--space-24);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-title {
  font-family: 'BOG Headline', MarkGEOCAPS, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--color-text);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-input-wrap {
  position: relative;
}

.field-input {
  width: 100%;
  height: 56px;
  padding: 12px 16px;
  font-family: MarkGEO, BOG, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.field-input::placeholder {
  color: var(--color-text-muted);
}

.field-input:focus {
  border-color: var(--color-orange);
}

.field-input-wrap .field-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: 4px;
}

.password-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-orange);
  cursor: pointer;
}

.checkbox-row label {
  font-family: BOG, MarkGEO, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
}

.forgot-link {
  font-family: BOG, MarkGEO, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-link);
  display: inline-block;
}

.forgot-link:hover {
  text-decoration: underline;
}

.form-actions {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-12);
}

.btn-primary {
  width: 100%;
  height: 56px;
  background: var(--color-orange);
  color: #fff;
  font-family: MarkGEOCAPS, 'BOG Headline', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--color-orange-hover);
}

.btn-register {
  display: block;
  width: max-content;
  margin: 0 auto;
  height: 32px;
  padding: 0 var(--space-8);
  background: transparent;
  color: var(--color-orange);
  font-family: MarkGEOCAPS, 'BOG Headline', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.btn-register:hover {
  background: var(--color-invert-component-tr-80);
}

/* Footer — mirrors bd-footer-bottom shadow DOM (stacked in left panel) */
.footer {
  align-self: stretch;
  width: unset;
  margin: var(--space-48) var(--space-32) 0;
  padding-top: var(--space-24);
  padding-bottom: var(--space-64);
  border-top: 1px solid var(--color-invert-component-tr-70);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.footer-tablet-texts-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}

.footer-text-links {
  display: flex;
  flex-direction: column;
}

.footer-license {
  font-family: BOG, MarkGEO, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-invert-component-tr-20);
  margin: 0;
}

.footer-quick-links {
  display: grid;
  grid-auto-flow: column;
  grid-gap: var(--space-8);
  margin-top: var(--space-6);
  margin-bottom: 0;
  align-items: center;
}

.footer-link-item {
  display: flex;
  align-items: center;
  font-family: BOG, MarkGEO, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-invert-component-tr-40);
  text-decoration: none;
  white-space: nowrap;
}

.footer-link-item:first-child {
  margin-left: -8px;
}

.footer-link-item::before {
  content: "";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--color-invert-component-tr-40);
  display: inline-block;
  margin: 0 var(--space-12);
  flex-shrink: 0;
}

.footer-link-item:hover {
  text-decoration: underline;
}

.footer-shortcuts {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  width: 100%;
}

.footer-media {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: var(--space-6);
}

.footer-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--color-invert-component-tr-50);
  margin-right: var(--space-24);
}

.footer-social-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-8);
  color: var(--color-invert-component-tr-50);
  border-radius: 50%;
  transition: background-color 0.2s ease-in-out;
}

.footer-social-btn:not(:first-child) {
  margin-left: var(--space-4);
}

.footer-social-btn:hover {
  background: var(--color-invert-component-tr-80);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-stores {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.footer-stores a {
  display: flex;
  height: 24px;
  padding: var(--space-8) var(--space-16);
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-31);
  background-color: transparent;
  transition: background-color 0.2s ease-in-out;
}

.footer-stores a:hover {
  background-color: var(--color-invert-component-tr-80);
}

.footer-stores a:active {
  background-color: var(--color-invert-component-tr-70);
}

.footer-stores img {
  height: 20px;
  width: auto;
  display: block;
}

/* Slider */
.slider-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slider-track {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.slide.prev,
.slide.next,
.slide.hidden {
  opacity: 0;
  z-index: 1;
}

.slider-nav {
  position: absolute;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  z-index: 10;
}

.nav-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border-radius: 50%;
  transition: background-color 0.2s ease-in-out;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.slider-bullets {
  display: inline-flex;
  align-items: center;
  margin: 0 var(--space-8);
}

.indicator {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transform: scale(1);
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.indicator:not(:last-child) {
  margin-right: var(--space-8);
}

.indicator.smaller {
  transform: scale(0.66);
}

.indicator.smallest {
  transform: scale(0.33);
}

.indicator.hidden {
  transform: scale(0);
  pointer-events: none;
}

.indicator.active {
  background: #fff;
  transform: scale(1);
}

/* Responsive — slider hidden ≤1250px like rib-login */
@media (max-width: 1250px) {
  .panel-right {
    display: none;
  }

  .panel-left {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }

  .tab-btn:first-child {
    margin-left: var(--space-12);
  }

  .logo-wrap {
    padding: var(--space-16) var(--space-32) var(--space-16) var(--space-36);
  }

  .lang-switch {
    margin-right: var(--space-36);
  }

  .login-area {
    padding: 0 var(--space-24);
  }

  .card {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 1024px) {
  .tab-btn:first-child {
    margin-left: var(--space-4);
  }

  .logo-wrap {
    padding-left: calc(var(--space-16) + var(--space-12));
  }

  .lang-switch {
    margin-right: calc(var(--space-16) + var(--space-12));
  }

  .footer {
    padding-top: var(--space-32);
    padding-bottom: var(--space-48);
  }
}

@media (max-width: 768px) {
  .footer-media {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-icons {
    margin-bottom: var(--space-8);
  }

  .footer-stores {
    margin-top: var(--space-12);
  }
}

@media (max-width: 600px) {
  .header {
    height: 50px;
    flex-wrap: nowrap;
  }

  .tab-btn:first-child {
    margin-left: 0;
  }

  .tab-btn {
    font-size: 13px;
    padding: 0 var(--space-12);
  }

  .logo-wrap {
    padding: var(--space-16) var(--space-24);
  }

  .lang-switch {
    margin-right: var(--space-24);
  }

  .login-area {
    padding: 0;
    width: 100%;
    align-self: stretch;
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: auto;
    box-shadow: none;
  }

  .card-header {
    padding: 0 var(--space-24);
  }

  .login-form {
    padding: var(--space-32) var(--space-24) var(--space-24);
  }

  .footer {
    margin-left: var(--space-24);
    margin-right: var(--space-24);
  }

  .footer-quick-links {
    grid-auto-flow: row;
    margin-top: 0;
  }
}

/* DLLGN operator flow */
#dllgn-error-banner {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fdecea;
  border: 1px solid #e74c3c;
  color: #7b241c;
  border-radius: 4px;
  font-size: 14px;
}

#dllgn-error-banner.dllgn-error-banner--visible {
  display: block;
}

.dllgn-waiting {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-secondary);
}

.dllgn-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 108, 29, 0.15);
  border-top-color: var(--color-orange);
  border-radius: 50%;
  animation: dllgn-spin 0.8s linear infinite;
}

@keyframes dllgn-spin {
  to { transform: rotate(360deg); }
}

.dllgn-flow-screens {
  margin-top: 8px;
}

.dllgn-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dllgn-screen--center {
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.dllgn-flow-title {
  font-family: 'BOG Headline', MarkGEOCAPS, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
}

.dllgn-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.dllgn-flow-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
}

.dllgn-flow-text--bold {
  font-weight: 600;
}

.dllgn-flow-btn {
  margin-top: 4px;
}

.dllgn-inline-error {
  display: none;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: #c0392b;
  font-size: 13px;
}

.dllgn-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dllgn-photo-drop {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: border-color 0.2s;
}

.dllgn-photo-drop--over,
.dllgn-photo-drop:hover {
  border-color: var(--color-orange);
}

.dllgn-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dllgn-photo-thumb {
  position: relative;
  display: inline-block;
}

.dllgn-photo-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.dllgn-photo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.btn-primary.dllgn-loading {
  opacity: 0.75;
  pointer-events: none;
}

.dllgn-qr-host {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
}

.dllgn-qr-host-wrap {
  text-align: center;
  margin: 12px 0;
}

.dllgn-qr-host img,
.dllgn-qr-host .dllgn-qr-svg svg {
  display: block;
  max-width: 200px;
  max-height: 200px;
}
