/* 7px.pl v4.15 - minimalistyczne ekrany logowania i rejestracji */
html.public-auth-shell {
  --auth-font: Inter, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.public-auth-shell body,
html.public-auth-shell button,
html.public-auth-shell input,
html.public-auth-shell select,
html.public-auth-shell textarea {
  font-family: var(--auth-font);
}

html.public-auth-shell .wo-gridwrap-cols-1 {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

html.public-auth-shell body,
html.public-auth-shell .wo-content,
html.public-auth-shell .wo-gridwrap,
html.public-auth-shell .wo-col {
  background: var(--brand-bg);
}

html.public-auth-shell .wo-content { overflow-x: clip; }

html.public-auth-shell .wo-gridwrap > .auth-page,
html.public-auth-shell .wo-gridwrap > .auth-signup-page {
  min-width: 0;
  padding: 20px 22px 56px 10px;
  border-left: 0 !important;
}

.auth-kicker {
  margin: 0 0 12px;
  color: var(--brand-accent);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-kicker--light { color: #ffad47; }

/* Logowanie, odzyskiwanie, 2FA */
html.public-auth-shell .wo-login.auth-surface {
  width: 100%;
  min-height: min(690px, calc(100vh - var(--wo-header-h) - 42px));
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(420px, 1.05fr);
  gap: clamp(34px, 4vw, 72px);
  align-items: stretch;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html.public-auth-shell .auth-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 14px;
  background: #111318;
}

html.public-auth-shell .auth-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.82) contrast(1.04);
}

.auth-visual__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,12,.04) 0%, rgba(7,9,12,.18) 45%, rgba(7,9,12,.9) 100%),
    linear-gradient(90deg, rgba(7,9,12,.18), transparent 58%);
  pointer-events: none;
}

html.public-auth-shell .auth-visual__content {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 3.7vw, 54px);
  right: clamp(28px, 3.7vw, 54px);
  bottom: clamp(30px, 4.5vw, 56px);
  color: #fff;
}

.auth-visual__content strong {
  display: block;
  max-width: 16ch;
  font-size: clamp(34px, 3.7vw, 58px) !important;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.045em;
}

.auth-visual__content > span {
  display: block;
  max-width: 56ch;
  margin-top: 18px;
  color: rgba(255,255,255,.75);
  font-size: 13px !important;
  line-height: 1.65 !important;
  font-weight: 430;
}

.auth-visual__points {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.auth-visual__points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 650;
}
.auth-visual__points i { color: #ffad47; font-size: 12px; }

html.public-auth-shell .auth-panel {
  min-height: 620px;
  padding: clamp(28px, 4vw, 56px) clamp(8px, 3vw, 38px);
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-panel__inner {
  width: min(100%, 470px);
  margin: 0 auto;
}

.auth-panel__head { margin-bottom: 30px; }
.auth-panel__head h1 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1;
  font-weight: 790;
  letter-spacing: -.045em;
}

html.public-auth-shell .wo-login-sub {
  max-width: 50ch;
  margin: 15px 0 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 420;
}

.auth-icon {
  width: auto;
  height: auto;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-accent);
  display: block;
  font-size: 19px;
}

.auth-back {
  width: max-content;
  min-height: 34px;
  margin-bottom: 32px;
  color: var(--brand-muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
.auth-back:hover { color: var(--brand-text); opacity: 1; }

html.public-auth-shell .auth-form {
  margin: 0;
  display: grid;
  gap: 20px;
}

.auth-field { gap: 8px; }
.auth-field .wo-label,
html.public-auth-shell .wo-label {
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0;
}

.auth-input-wrap { position: relative; display: block; }
.auth-input-wrap > i { display: none; }

html.public-auth-shell .auth-form .wo-input,
html.public-auth-shell .wo-presignup .wo-input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-surface);
  color: var(--brand-text);
  padding: 0 15px;
  font-size: 14px;
  font-weight: 480;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

html.public-auth-shell .auth-input-wrap .wo-input { padding-left: 15px; }

html.public-auth-shell .auth-form .wo-input::placeholder,
html.public-auth-shell .wo-presignup .wo-input::placeholder {
  color: color-mix(in srgb, var(--brand-muted) 70%, transparent);
}

html.public-auth-shell .auth-form .wo-input:focus,
html.public-auth-shell .wo-presignup .wo-input:focus {
  border-color: var(--brand-text);
  background: var(--brand-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 13%, transparent);
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-check {
  color: var(--brand-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 560;
}
.auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-accent); }
.auth-link { color: var(--brand-text); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-link:hover { color: var(--brand-accent); }

html.public-auth-shell .auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-text);
  color: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
}
html.public-auth-shell .auth-submit:hover { background: var(--brand-accent); color: #171717; }

.auth-switch {
  margin: 4px 0 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.auth-switch a { color: var(--brand-text); font-weight: 720; text-decoration: none; }
.auth-switch a:hover { color: var(--brand-accent); }

.auth-note {
  margin: 0;
  color: var(--brand-muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.55;
}
.auth-note i { margin-top: 3px; color: var(--brand-accent); }

.auth-code-input {
  height: 64px !important;
  padding: 0 12px !important;
  text-align: center;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: .28em;
  font-variant-numeric: tabular-nums;
}
.auth-code-help {
  margin: -10px 0 0;
  color: var(--brand-muted);
  font-size: 11px;
  text-align: center;
}

/* Rejestracja */
html.public-auth-shell .wo-presignup.auth-signup-page { width: 100%; background: var(--brand-bg); }
html.public-auth-shell .wo-presignup-form { width: 100%; }
html.public-auth-shell .wo-presignup-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
}

html.public-auth-shell .wo-presignup-main {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html.public-auth-shell .auth-signup-head {
  margin: 0;
  padding: clamp(26px, 3.6vw, 48px) 4px clamp(30px, 4vw, 52px);
  border-bottom: 1px solid var(--brand-line);
}

.auth-signup-head .wo-presignup-title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1;
  font-weight: 790;
  letter-spacing: -.045em;
}

.auth-signup-head .wo-presignup-sub {
  max-width: 70ch;
  margin: 18px 0 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-signup-progress {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.auth-signup-progress span { color: var(--brand-muted); font-size: 11px; font-weight: 600; }
.auth-signup-progress b { margin-right: 7px; color: var(--brand-accent); font-weight: 760; }

html.public-auth-shell .wo-form-section {
  margin: 0;
  padding: clamp(30px, 3.6vw, 46px) 4px;
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
}

html.public-auth-shell .wo-form-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

html.public-auth-shell .wo-form-section-num {
  width: auto;
  height: auto;
  min-width: 25px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-accent);
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  font-size: 11px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: .06em;
  white-space: nowrap;
}
html.public-auth-shell .wo-form-section-num::before { content: "0"; display: inline; }
html.public-auth-shell .wo-form-section-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -.02em;
}

html.public-auth-shell .wo-form-grid { gap: 18px; }
html.public-auth-shell textarea.wo-input { min-height: 122px; height: auto; padding-block: 14px; line-height: 1.55; }
html.public-auth-shell select.wo-input { appearance: auto; }
html.public-auth-shell .wo-hint { color: var(--brand-muted); font-size: 11px; line-height: 1.5; }

html.public-auth-shell .wo-avatar-card,
html.public-auth-shell .wo-photo-card {
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-surface);
}
html.public-auth-shell .wo-avatar-card { padding: 18px; }
html.public-auth-shell .wo-avatar-square { border-radius: 10px; }
html.public-auth-shell .wo-photo-card { padding: 14px; }
html.public-auth-shell .wo-photo-card .wo-upload-slot { border-radius: 9px; }
html.public-auth-shell .wo-photo-flag { border-radius: 8px; }

html.public-auth-shell .wo-presignup-actions {
  align-items: center;
  justify-content: flex-start;
}

html.public-auth-shell .wo-presignup-actions > .wo-btn[type="submit"] {
  width: auto;
  min-width: 180px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-text);
  color: var(--brand-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 740;
}
html.public-auth-shell .wo-presignup-actions > .wo-btn[type="submit"]:hover { background: var(--brand-accent); color: #171717; }

.auth-signup-guide {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-signup-guide__inner {
  position: sticky;
  top: 18px;
  padding: 10px 0 28px 26px;
  border-left: 1px solid var(--brand-line);
}
.auth-signup-guide h2 {
  max-width: 13ch;
  margin: 0;
  font-size: 30px;
  line-height: 1.04;
  font-weight: 780;
  letter-spacing: -.035em;
}
.auth-signup-guide__inner > p:not(.auth-kicker):not(.auth-signup-guide__login) {
  margin: 16px 0 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-signup-guide__steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.auth-signup-guide__steps li {
  min-height: 86px;
  padding: 20px 0;
  border-top: 1px solid var(--brand-line);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}
.auth-signup-guide__steps li > span { color: var(--brand-accent); font-size: 12px; font-weight: 760; }
.auth-signup-guide__steps strong { display: block; font-size: 15px; font-weight: 720; }
.auth-signup-guide__steps small { display: block; margin-top: 6px; color: var(--brand-muted); font-size: 12px; line-height: 1.5; }

.auth-signup-guide__note {
  margin-top: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
  color: var(--brand-muted);
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.auth-signup-guide__note i { color: var(--brand-accent); }
.auth-signup-guide__login { margin: 20px 0 0; color: var(--brand-muted); font-size: 12px; }
.auth-signup-guide__login a { color: var(--brand-text); font-weight: 720; text-decoration: none; }

html.public-auth-shell .wo-presignup-main > .wo-form-alert { margin: 24px 4px 0; }

@media (max-width: 1180px) {
  html.public-auth-shell .wo-login.auth-surface { grid-template-columns: minmax(360px, .85fr) minmax(400px, 1.15fr); gap: 32px; }
  html.public-auth-shell .wo-presignup-shell { grid-template-columns: minmax(0,1fr) 270px; gap: 28px; }
}

@media (max-width: 980px) {
  html.public-auth-shell .wo-gridwrap-cols-1 { grid-template-columns: 1fr; }
  html.public-auth-shell .wo-gridwrap > aside.wo-col { display: none; }
  html.public-auth-shell .wo-gridwrap > .auth-page,
  html.public-auth-shell .wo-gridwrap > .auth-signup-page { padding: 10px 14px 36px; }
  html.public-auth-shell .wo-login.auth-surface { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  html.public-auth-shell .auth-visual { min-height: 380px; }
  html.public-auth-shell .auth-panel { min-height: 0; padding: 22px clamp(8px, 6vw, 56px) 44px; }
  .auth-visual__content strong { max-width: 18ch; }
  html.public-auth-shell .wo-presignup-shell { grid-template-columns: 1fr; }
  .auth-signup-guide { display: block !important; }
  .auth-signup-guide__inner { position: static; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--brand-line); }
}

@media (max-width: 640px) {
  html.public-auth-shell .wo-gridwrap > .auth-page,
  html.public-auth-shell .wo-gridwrap > .auth-signup-page { padding: 6px 8px 28px; }
  html.public-auth-shell .auth-visual { min-height: 300px; border-radius: 10px; }
  html.public-auth-shell .auth-visual__content { left: 22px; right: 22px; bottom: 24px; }
  .auth-visual__content strong { font-size: 34px !important; }
  .auth-visual__content > span { margin-top: 12px; font-size: 12px !important; }
  .auth-visual__points { margin-top: 16px; padding-top: 14px; }
  html.public-auth-shell .auth-panel { padding: 18px 4px 38px; }
  .auth-panel__head h1 { font-size: 40px; }
  .auth-form__row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .auth-signup-head .wo-presignup-title { font-size: 42px; }
  html.public-auth-shell .auth-signup-head,
  html.public-auth-shell .wo-form-section { padding-left: 0; padding-right: 0; }
  html.public-auth-shell .wo-form-grid,
  html.public-auth-shell .wo-portfolio-grid { grid-template-columns: 1fr; }
  .auth-signup-progress { gap: 9px 18px; }
  html.public-auth-shell .wo-presignup-actions > .wo-btn[type="submit"] { width: 100%; }
}
