/*
 * The sign-in screen in the landing's look: the whole window, two halves on a computer (what OLONE is on
 * the left, the form on the right), one column on a phone with the form first. The logo shows once, with
 * no repeated name under it and no blurred glow.
 */
body.app-guest {
  background: #05060c;
}

body.app-guest .app {
  min-height: 100dvh;
}

body.app-guest #preChatWrap {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: block;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  background:
    radial-gradient(60% 50% at 18% 12%, rgba(47, 107, 255, 0.2), transparent 70%),
    radial-gradient(45% 40% at 92% 88%, rgba(124, 92, 246, 0.14), transparent 72%),
    #05060c;
}

body.app-guest #preChatCard.olone-auth-v2 {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.app-guest #preChatCard.olone-auth-v2::before,
body.app-guest #preChatCard.olone-auth-v2::after {
  display: none;
}

body.app-guest #preChatCard .sidebar-inner {
  min-height: 100dvh;
  padding: 0;
  display: block;
}

/* The old in-between card (logo, name, two buttons) and the repeated brand are gone. */
body.app-guest #preChatCard .brand,
body.app-guest #landingView,
body.app-guest .olone-auth-card .olone-auth-brand {
  display: none !important;
}

body.app-guest #authLayoutRow:not(.hidden) {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* ---------- left: what OLONE is ---------- */
.olone-auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px) 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #f3f5fa;
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
}

.olone-auth-hero__logo {
  display: block;
  width: 150px;
  height: auto;
  margin: -46px -16px -34px;
}

.olone-auth-hero__title {
  margin: clamp(28px, 5vh, 56px) 0 0;
  max-width: 13em;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.olone-auth-hero__lead {
  margin: 16px 0 0;
  max-width: 30em;
  color: #a6b2c6;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  text-wrap: pretty;
}

.olone-auth-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.olone-auth-hero__chips li {
  padding: 7px 13px;
  border: 1px solid #242e40;
  border-radius: 999px;
  background: rgba(16, 21, 31, 0.8);
  color: #cfd8ea;
  font-size: 13px;
  white-space: nowrap;
}

/* «Смотреть, как это выглядит»: to the video of real screens on the landing. */
.olone-auth-hero__watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 22px;
  min-height: 46px;
  padding: 0 20px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(143, 123, 255, 0.45);
  background: rgba(40, 36, 110, 0.35);
  color: #eef1ff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.olone-auth-hero__watch svg {
  width: 30px;
  height: 30px;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3d8bff, #7a5cff);
  box-sizing: border-box;
}
.olone-auth-hero__watch:hover { background: rgba(60, 54, 150, 0.5); border-color: rgba(160, 140, 255, 0.7); }
.olone-auth-hero__watch:focus-visible { outline: 2px solid #8fb2ff; outline-offset: 3px; }
.landingView .olone-auth-hero__watch { align-self: center; margin-top: 18px; }

.olone-auth-hero__shot {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  margin-top: clamp(28px, 5vh, 52px);
}

.olone-auth-hero__shot img {
  position: absolute;
  top: 0;
  left: 0;
  width: min(118%, 900px);
  max-width: none;
  height: auto;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 0 0 1px #2c3445, 0 -10px 60px rgba(47, 107, 255, 0.22);
}

/* ---------- right: the form ---------- */
body.app-guest #authLayoutRow .olone-auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  gap: 16px;
}

body.app-guest #authLayoutRow .olone-auth-card {
  position: relative;
  width: min(100%, 440px);
  max-width: 440px;
  margin: 0;
  padding: 28px;
  border: 1px solid #242e40;
  border-radius: 22px;
  background: rgba(16, 21, 31, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* «Назад» becomes a quiet link to the main page above the form. */
body.app-guest #authLayoutRow #authBackBtn {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #8f9bb8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

body.app-guest #authLayoutRow #authBackBtn::before {
  content: "‹";
  font-size: 18px;
  line-height: 1;
}

body.app-guest #authLayoutRow #authBackBtn:hover {
  color: #f3f5fa;
}

body.app-guest #authLayoutRow .olone-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 13px;
  background: #0a0e17;
}

body.app-guest #authLayoutRow .olone-auth-tab {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #8f9bb8;
  font-size: 14px;
  font-weight: 600;
}

body.app-guest #authLayoutRow .olone-auth-tab.is-active {
  background: #1b2740;
  color: #f3f5fa;
}

/* The main button: white words on the blue, as on the landing. */
body.app-guest #authLayoutRow #authSubmit,
body.app-guest #authLayoutRow .auth-form button.primary {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: #2f6bff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 26px rgba(47, 107, 255, 0.45);
}

body.app-guest #authLayoutRow #authSubmit:hover,
body.app-guest #authLayoutRow .auth-form button.primary:hover {
  background: #4a7eff;
}

.olone-auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  width: min(100%, 440px);
  color: #7f8ba0;
  font-size: 13px;
}

.olone-auth-foot a {
  color: inherit;
  text-decoration: none;
}

.olone-auth-foot a:hover {
  color: #f3f5fa;
}

/* ---------- phone and narrow windows: one column, the form first ---------- */
@media (max-width: 980px) {
  body.app-guest #authLayoutRow:not(.hidden) {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .olone-auth-hero {
    order: 2;
    padding: 8px 20px 32px;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .olone-auth-hero__logo,
  .olone-auth-hero__shot {
    display: none;
  }

  .olone-auth-hero__title {
    margin-top: 24px;
    font-size: 26px;
  }

  body.app-guest #authLayoutRow .olone-auth-layout {
    order: 1;
    justify-content: flex-start;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 24px;
  }

  body.app-guest #authLayoutRow .olone-auth-layout::before {
    content: "";
    display: block;
    width: 132px;
    height: 62px;
    margin: 0 auto 4px;
    background: url("/assets/download/olone-logo-clean.png?v=1") center / 132px auto no-repeat;
  }

  body.app-guest #authLayoutRow .olone-auth-card {
    padding: 20px;
  }
}

/* The form and the levels note form one centred column that scrolls by itself when the window is low. */
body.app-guest #authLayoutRow .olone-auth-layout {
  justify-content: safe center;
  max-height: 100dvh;
  overflow-y: auto;
}

body.app-guest #authLayoutRow .olone-auth-layout > * {
  flex: 0 0 auto;
}

body.app-guest #authLayoutRow .olone-levels-card,
body.app-guest #authLayoutRow .olone-auth-layout > aside,
body.app-guest #authLayoutRow .olone-auth-layout > .auth-hint-desktop {
  position: static;
  width: min(100%, 440px);
  max-width: 440px;
  margin: 0;
  padding: 18px 22px;
  border: 1px solid #1c2433;
  border-radius: 18px;
  background: rgba(12, 16, 25, 0.7);
  box-shadow: none;
  transform: none;
}

@media (max-width: 980px) {
  body.app-guest #authLayoutRow .olone-auth-layout {
    max-height: none;
    overflow: visible;
  }
}

body.app-guest #authLayoutRow .olone-auth-layout > .olone-auth-card,
body.app-guest #authLayoutRow .olone-auth-layout > .olone-levels-card {
  align-self: center !important;
  inset: auto !important;
  margin: 0 !important;
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  box-sizing: border-box;
}
