/* /frontend/supplier/auth/register.css */

.sAuthPage{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ===================== STICKY TOP BAR ===================== */
.sTopBar{
  height: 50px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 var(--pad);
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}

.sTopBar__back{
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  cursor: pointer;
}

.sTopBar__title{
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sTopBar__right{
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================== INTRO CARD ===================== */
.sCard{
  margin-top: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.sIntroCard{
  position: relative;
}

.sIntroCard::before{
  content:"";
  position:absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-deep);
}

.sIntroBg{
  position:absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(243,107,33,.16), transparent 55%),
    radial-gradient(circle at 86% 30%, rgba(15,23,42,.10), transparent 56%),
    linear-gradient(135deg, rgba(255,255,255,1), rgba(247,247,245,1));
}

.sIntroBody{
  position: relative;
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.sIntroTitle{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.25px;
  color: var(--text);
}

.sIntroSub{
  margin: 0;
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 700;
}

/* ===================== FORM CARD ===================== */
.sFormCard{
  padding: 14px;
  position: relative;
}

.sFormCard::before{
  content:"";
  position:absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-deep);
}

/* ===================== ALERT ===================== */
.sAlert{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 10px 11px;
  font-size: 12.7px;
  font-weight: 800;
  margin: 8px 0 12px;
}

.sAlert--error{
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.sAlert--success{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
  color: #166534;
}

.isHidden{ display:none !important; }

/* ===================== FORM ===================== */
.sForm{
  display:grid;
  gap: 12px;
}

/* section block cards (slightly darker optional) */
.sBlock{
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.sBlock--dark{
  background: linear-gradient(135deg, rgba(15,23,42,0.03), rgba(243,107,33,0.06));
  border-color: rgba(15,23,42,0.10);
}

.sBlock__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sBlock__title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  color: var(--text);
  font-size: 13.5px;
  letter-spacing: -0.1px;
}

.sBlock__title i{
  color: var(--brand);
}

.sBlock__hint{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

/* grid */
.sGrid{
  display:grid;
  gap: 12px;
}

@media (min-width: 700px){
  .sGrid{ grid-template-columns: repeat(2, 1fr); }
}

/* fields */
.sField{
  display:grid;
  gap: 7px;
}

/* ===== File input (Choose file) - PRO branded ===== */

.sFile:hover{
  border-color: rgba(243,107,33,0.30);
  background: rgba(243,107,33,0.05);
}

.sFile:focus{
  border-color: rgba(243,107,33,0.45);
  box-shadow: 0 0 0 4px rgba(243,107,33,0.12);
}

/* Style the actual "Choose file" button */
.sFile::file-selector-button{
  height: 32px;
  margin-right: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 900;
  font-size: 12.4px;
  letter-spacing: -0.1px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.sFile::file-selector-button:hover{
  filter: brightness(1.03);
}

.sFile::file-selector-button:active{
  transform: translateY(1px);
}

/* Safari/older Chromium fallback */
.sFile::-webkit-file-upload-button{
  height: 32px;
  margin-right: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 900;
  font-size: 12.4px;
  letter-spacing: -0.1px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.sLabel{
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: -0.1px;
  color: var(--text);
}

.sReq{
  color: var(--brand);
  font-weight: 900;
}

.sInput{
  height: 44px;
  width: 100%;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15,23,42,0.04);
  outline: none;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
}

.sInput:focus{
  border-color: rgba(243,107,33,0.45);
  box-shadow: 0 0 0 4px rgba(243,107,33,0.12);
}

.sInput::placeholder{
  color: rgba(100,116,139,0.85);
  font-weight: 700;
}

.sPassRow{
  display:grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items:center;
}

.sIconBtn{
  height: 44px;
  width: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  color: var(--muted);
}

.sIconBtn:hover{
  color: var(--brand);
  border-color: rgba(243,107,33,0.30);
}

/* file input */
.sFile{
  width: 100%;
  border-radius: var(--r-md);
  border: 1px dashed rgba(15,23,42,0.18);
  background: rgba(15,23,42,0.02);
  padding: 10px;
  font-weight: 800;
  font-size: 12.8px;
  color: var(--text);
}

.sHelp{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

/* checks */
.sChecks{
  display:grid;
  gap: 10px;
  margin-bottom: 12px;
}

.sCheck{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--r-md);
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.9);
  font-weight: 800;
  font-size: 12.8px;
  color: var(--text);
}

.sCheck input{
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* Buttons */
.sBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12.8px;
  letter-spacing: -0.1px;
  border: 1px solid var(--line);
}

.sBtn--primary{
  background: var(--brand-deep);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

/* Disabled primary button (PRO) */
.sBtn--primary:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.15);
}

.sBtn--primary:disabled:hover{
  filter: grayscale(0.15);
}

.sBtn--primary:hover{ filter: brightness(1.03); }

.sBtn--wide{ width: 100%; }

.sNote{
  margin-top: 10px;
  font-size: 12.4px;
  color: var(--muted);
  font-weight: 800;
}

.sFooterLink{
  margin-top: 4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-size: 12.6px;
  font-weight: 800;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* bottom breathing space */
.sBottomSpace{ height: 18px; }
