/* ==========================================================================
   SOCIALEYEZ Supplier Portal — authentication shell.
   Split layout: 45% ink brand panel + light form column (≥1024px);
   56px ink top bar + full-width form column below 1024px.
   Depends on se-theme.css tokens.
   ========================================================================== */

html.se-auth-html,
body.se-auth-body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--se-surface);
  font-family: var(--se-font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--se-ink);
  -webkit-font-smoothing: antialiased;
}
.se-auth,
.se-auth * { box-sizing: border-box; }
.se-auth p { margin: 0; }
.se-auth a { color: var(--se-ink); }
.se-auth a:hover { color: var(--se-ink-soft); }
.se-auth input::placeholder,
.se-auth textarea::placeholder { color: var(--se-muted-2); }

.se-auth {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--se-surface);
  color: var(--se-ink);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .se-auth { flex-direction: row; }
}

/* Brand panel (desktop) */
.se-auth__brand { display: none; }
@media (min-width: 1024px) {
  .se-auth__brand {
    display: flex;
    width: 45%;
    flex-shrink: 0;
    flex-direction: column;
    padding: 56px 72px;
    background: var(--se-ink);
    color: var(--se-surface);
  }
}
.se-auth__brand-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  max-width: 440px;
}
.se-auth__logo { display: inline-flex; align-self: flex-start; }
.se-auth__logo img { height: 30px; width: auto; display: block; }
.se-auth__brand-text { display: flex; flex-direction: column; gap: 16px; }
.se-auth__brand-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--se-surface);
  text-wrap: pretty;
}
.se-auth__brand-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--se-on-dark-muted);
  text-wrap: pretty;
}
.se-auth__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.se-auth__steps li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 15px;
  line-height: 22px;
  color: var(--se-surface);
}
.se-auth__step-n { font-family: var(--se-font-mono); font-size: 13px; color: var(--se-muted-2); }
.se-auth__steps li.is-done { color: var(--se-muted-2); }
.se-auth__steps li.is-done .se-auth__step-t { text-decoration: line-through; }
.se-auth__steps li.is-active .se-auth__step-n { color: var(--se-surface); }
.se-auth__brand-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 20px;
  color: var(--se-on-dark-muted);
}
.se-auth__brand-foot svg { flex-shrink: 0; }

/* Mobile top bar */
.se-auth__topbar {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--se-ink);
  color: var(--se-surface);
}
.se-auth__topbar img { height: 22px; width: auto; display: block; }
.se-auth__topbar a { color: var(--se-surface); text-decoration: none; }
.se-auth__topbar-action {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 12px 0;
}
.se-auth__topbar-action:hover { color: var(--se-surface); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .se-auth__topbar { display: none; }
}

/* Form column */
.se-auth__main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.se-auth__scroll { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.se-auth__center {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}
.se-auth__content {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .se-auth__center { align-items: center; padding: 64px clamp(32px, 5vw, 80px); }
  .se-auth__content { gap: 40px; }
}
.se-auth--register .se-auth__center { align-items: flex-start; padding: 24px 20px 32px; }
.se-auth--register .se-auth__content { max-width: 560px; }
@media (min-width: 1024px) {
  .se-auth--register .se-auth__center { padding: 48px clamp(32px, 5vw, 80px); }
}

/* Sticky footer (register) */
.se-auth__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--se-border-soft);
  background: var(--se-surface);
}
.se-auth__footer-inner { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 12px; }
.se-auth__footer .se-btn--back { min-width: 48px; padding: 0; }
.se-auth__footer .se-btn--back span { display: none; }
@media (min-width: 1024px) {
  .se-auth__footer { padding: 16px clamp(32px, 5vw, 80px); }
  .se-auth__footer .se-btn--back { padding: 0 20px; }
  .se-auth__footer .se-btn--back span { display: inline; }
}

/* Wizard steps */
.se-step { display: none; }
.se-step.is-active { display: flex; flex-direction: column; gap: 24px; }
.se-step-panel { display: none; }
.se-step-panel.is-active { display: flex; flex-direction: column; gap: 32px; }

/* Responsive visibility */
.se-desktop-only { display: none !important; }
@media (min-width: 1024px) {
  .se-desktop-only { display: flex !important; }
  .se-desktop-only.se-as-block { display: block !important; }
  .se-mobile-only { display: none !important; }
}

.se-auth__fine { margin: 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--se-muted); }
.se-auth__fine--left { text-align: left; }
