html, body {
  margin: 0;
  min-height: 100%;
  background: #064e3b;
}

#seller-launch-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: #064e3b;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.seller-launch-content {
  max-width: calc(100vw - 32px);
  text-align: center;
}

.seller-launch-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.seller-launch-brand img {
  width: 166px;
  height: 52px;
  filter: brightness(0) invert(1);
}

.seller-launch-brand span {
  padding: 4px 9px;
  border-radius: 8px;
  background: rgb(255 255 255 / 16%);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.seller-launch-motto {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.seller-launch-recovery {
  max-width: 320px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.seller-launch-recovery h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.seller-launch-recovery p {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgb(255 255 255 / 84%);
}

#seller-launch-retry {
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 12px;
  background: #ffffff;
  color: #064e3b;
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  cursor: pointer;
}

#seller-launch-retry:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

#seller-launch-retry:disabled {
  opacity: .6;
  cursor: wait;
}

.seller-launch-progress {
  position: absolute;
  bottom: calc(72px + env(safe-area-inset-bottom));
  width: 140px;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(255 255 255 / 24%);
}

.seller-launch-progress::after {
  content: '';
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  animation: seller-launch-slide 1400ms linear infinite;
}

@keyframes seller-launch-slide {
  from { transform: translateX(-14%); }
  to { transform: translateX(152%); }
}

@media (prefers-reduced-motion: reduce) {
  .seller-launch-progress::after { animation: none; }
}

html[data-telegram-mini-app="true"],
html[data-telegram-mini-app="true"] body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* LoginScreen in plain HTML (login_shell.js): the same layout, sizes and
   colours as _AuthSplitScaffold and LoginScreen in auth_screens.dart. Font
   URLs resolve from boot/ in release builds and from the root otherwise. */
@font-face {
  font-family: SellerInter;
  src: url("../assets/fonts/Inter.cef9364e2c0c48df.woff2") format("woff2"), url("../assets/assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: SellerArchivo;
  src: url("../assets/fonts/Archivo.aae0ace1b4fe9d72.woff2") format("woff2"), url("../assets/assets/fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

#seller-login-shell,
#seller-register-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  grid-template-columns: 9fr 11fr;
  background: #ffffff;
  color: #121116;
  font-family: SellerInter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#seller-login-shell[hidden],
#seller-register-shell[hidden] { display: none; }

.seller-login-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: #059669;
  color: #ffffff;
}

.seller-login-brand-clip {
  position: absolute;
  inset: 48px 56px;
  overflow: hidden;
  pointer-events: none;
}

.seller-login-circle {
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
}

.seller-login-brand-content {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.seller-login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-login-logo img {
  width: auto;
  height: 28px;
  filter: brightness(0) invert(1);
}

.seller-login-logo span {
  padding: 4px 9px;
  border-radius: 5px;
  background: rgb(255 255 255 / 16%);
  font: 700 11px/1.3 SellerArchivo, SellerInter, Arial, sans-serif;
  letter-spacing: 1.2px;
}

.seller-login-eyebrow {
  margin: 84px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.8px;
}

.seller-login-hero {
  margin: 18px 0 0;
  font: 600 44px/1.08 SellerArchivo, SellerInter, Arial, sans-serif;
  letter-spacing: -0.6px;
}

.seller-login-hero-text {
  margin: 20px 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: 17px;
  line-height: 1.55;
}

.seller-login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow-y: auto;
}

.seller-login-form {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  margin: auto 0;
  padding: 24px;
}

.seller-login-form h1 {
  margin: 0;
  font: 600 27px/1.12 SellerArchivo, SellerInter, Arial, sans-serif;
  letter-spacing: -0.54px;
}

.seller-login-sub {
  margin: 8px 0 0;
  color: #4f5356;
  font-size: 15px;
  line-height: 1.5;
}

.seller-login-field { margin-top: 16px; }
.seller-login-sub + .seller-login-field { margin-top: 26px; }

/* The registration form (register_shell.js): first and last name side by side, as in Flutter. */
.seller-register-names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.seller-register-names .seller-login-field { margin-top: 0; }

.seller-register-hint {
  margin: 6px 0 0;
  color: #77787b;
  font-size: 12px;
  line-height: 1.35;
}

.seller-login-invalid .seller-register-hint { display: none; }

.seller-register-consent {
  margin: 14px 0 0;
  color: #77787b;
  font-size: 12px;
  line-height: 1.45;
}

.seller-login-field label {
  display: block;
  margin-bottom: 7px;
  color: #4f5356;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.14px;
}

.seller-login-field label b { color: #ea4335; font-weight: inherit; }

.seller-login-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
  cursor: text;
}

.seller-login-box:focus-within {
  border-color: #059669;
  box-shadow: 0 0 0 0.5px #059669;
}

.seller-login-invalid .seller-login-box { border-color: #ea4335; box-shadow: none; }

.seller-login-box svg {
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #9e9ea0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seller-login-box input {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #121116;
  font: 500 15px SellerInter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.seller-login-box input::placeholder { color: #9e9ea0; opacity: 1; }

.seller-login-eye {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.seller-login-eye svg { width: 20px; height: 20px; }
.seller-login-eye .seller-login-eye-shown,
.seller-login-eye-open .seller-login-eye-shut { display: none; }
.seller-login-eye-open .seller-login-eye-shown { display: block; }

.seller-login-error {
  margin: 6px 0 0;
  color: #ea4335;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

.seller-login-error:empty { display: none; }

.seller-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.seller-login-remember {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #4f5356;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.12px;
  cursor: pointer;
}

.seller-login-remember input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0 7px;
  border: 2px solid #4f5356;
  border-radius: 2px;
  background: #ffffff center / 14px no-repeat;
  appearance: none;
  cursor: pointer;
}

.seller-login-remember input:checked {
  border-color: #059669;
  background-color: #059669;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.seller-login-forgot,
.seller-login-register {
  color: #059669;
  text-decoration: none;
}

.seller-login-forgot {
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.14px;
  white-space: nowrap;
}

.seller-login-submit {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #064e3b;
  color: #ffffff;
  font: 600 16px/1.5 SellerInter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.seller-login-register-line {
  margin: 18px 0 0;
  padding: 8px 0;
  color: #4f5356;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.seller-login-register { font-weight: 700; }

.seller-login-busy .seller-login-submit span { visibility: hidden; }

.seller-login-busy .seller-login-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  margin: auto;
  box-sizing: border-box;
  border: 2.4px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: seller-login-spin 800ms linear infinite;
}

.seller-login-busy .seller-login-forgot,
.seller-login-busy .seller-login-register,
.seller-login-busy .seller-login-remember { pointer-events: none; opacity: 0.6; }

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

.seller-login-recovery {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  text-align: center;
}

.seller-login-recovery p {
  margin: 0;
  color: #4f5356;
  font-size: 13px;
  line-height: 1.45;
}

.seller-login-recovery .seller-login-recovery-title {
  margin: 0 0 4px;
  color: #121116;
  font-size: 14px;
  font-weight: 600;
}

.seller-login-recovery button {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 20px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
  color: #121116;
  font: 600 14px SellerInter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 899.98px) {
  #seller-login-shell,
  #seller-register-shell {
    grid-template-rows: 64px minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-login-brand {
    justify-content: flex-start;
    padding: 10px 16px;
  }

  .seller-login-brand-clip { inset: 10px 16px; }

  .seller-login-circle {
    right: -42px;
    bottom: -72px;
    width: 150px;
    height: 150px;
  }

  .seller-login-eyebrow,
  .seller-login-hero,
  .seller-login-hero-text { display: none; }
}

@media (max-width: 599.98px) {
  .seller-login-form { padding: 16px; }
  .seller-login-form h1 { font-size: 24px; }
  .seller-login-sub { font-size: 14px; line-height: 1.4; }
  .seller-login-field { margin-top: 12px; }
  .seller-login-sub + .seller-login-field { margin-top: 18px; }
  .seller-register-names { margin-top: 18px; }
  .seller-login-field label { margin-bottom: 5px; }
  .seller-login-box { min-height: 46px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .seller-login-busy .seller-login-submit::after { animation-duration: 2400ms; }
}
