.sg-account {
	--sg-ink:#242529;
	--sg-muted:#595959;
	--sg-accent:var(--skygravity-primary-color,#cc7298);
	--sg-surface:#f6f5f5;
	--sg-rule:#e8e5e7;
	color:var(--sg-ink);
	font-family:Inter,Arial,sans-serif;
	font-size:16px;
	line-height:1.55;
}
.sg-account * {
	box-sizing:border-box;
}
.sg-account h1 {
	font-size:clamp(24px, 2.6vw, 30px)!important;
	line-height:1.2!important;
	color:var(--sg-ink)!important;
	font-weight:600;
	margin:0 0 8px;
}
.sg-account h2 {
	font-size:18px;
	line-height:1.35;
	color:var(--sg-ink);
	margin:0;
	font-weight:600;
}
.sg-account h3 {
	font-size:17px;
	line-height:1.4;
	color:var(--sg-ink);
	margin:0 0 6px;
	font-weight:600;
}
.sg-account p {
	margin:0 0 16px;
}

.sg-login {
	width:100%;
	max-width:380px;
	margin:0 auto;
}

.sg-login-copy {
	margin-bottom:24px;
}
.sg-login-copy p {
	margin:8px 0 0;
	color:var(--sg-muted);
	overflow-wrap:anywhere;
}
.sg-resend {
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:4px;
	margin:16px 0;
	font-size:14px;
}
.sg-resend [hidden] {
	display:none!important;
}
.sg-login-help {
	margin:16px 0 0!important;
	font-size:13px;
}
.sg-login-form .sg-feedback:empty {
	display:none;
}
.sg-account label {
	display:block;
	font-size:14px;
	font-weight:600;
	margin:0 0 8px;
}
.sg-account input {
	display:block;
	width:100%;
	height:52px;
	background:white;
	border:1px solid #b8b8b8;
	border-radius:8px;
	font:inherit;
	color:var(--sg-ink);
	padding:12px 16px;
	margin-bottom:16px;
	box-shadow:none;
}
.sg-account input[name=code] {
	font-size:26px;
	letter-spacing:.25em;
	font-variant-numeric:tabular-nums;
}
.sg-account button,.sg-account a {
	touch-action:manipulation;
}
.sg-account button {
	font:inherit;
	cursor:pointer;
	letter-spacing:0;
	text-transform:none;
	box-shadow:none;
	transition:background-color .15s;
}
.sg-account .sg-primary,.sg-account .sg-secondary {
	display:inline-flex;
	justify-content:center;
	align-items:center;
	min-height:48px;
	border-radius:8px;
	font-weight:600;
	padding:10px 22px;
	text-decoration:none!important;
	line-height:1.4;
}
.sg-account .sg-primary {
	background:var(--sg-ink);
	color:#fff;
	border:1px solid transparent;
}
.sg-account .sg-primary:not(:disabled):hover {
	background:#38363a;
	color:#fff;
}
.sg-account .sg-primary:disabled {
	background:#595959;
	color:#fff;
}
.sg-login-form .sg-primary {
	width:100%;
}
.sg-account .sg-secondary {
	color:var(--sg-ink);
	background:white;
	border:1px solid #aeaaad;
}
.sg-account .sg-text {
	background:none;
	border:0;
	color:#333;
	padding:8px 0;
	min-height:44px;
	line-height:1.4;
	font-size:14px;
}
.sg-account button:disabled {
	cursor:wait;
	opacity:1;
	color:var(--sg-muted);
}
.sg-account :focus-visible {
	outline:2px solid #222;
	outline-offset:2px;
}
.sg-help {
	color:var(--sg-muted);
	font-size:14px;
}
.sg-feedback {
	font-size:14px;
	min-height:22px;
	margin:16px 0 0!important;
}
.sg-error {
	color:#a32939;
}
@media(prefers-reduced-motion:reduce) {
	.sg-account * { transition:none!important; }
}

.sg-auth-header {
	display:flex;
	align-items:center;
	gap:8px;
	min-height:44px;
	margin-bottom:12px;
}
.sg-auth-back {
	display:grid;
	place-items:center;
	width:44px;
	height:44px;
	padding:0;
	margin-left:-10px;
	border:0;
	border-radius:8px;
	background:transparent;
	color:var(--sg-ink);
}
.sg-auth-back:hover { background:var(--sg-surface); }
.sg-resend .sg-text { text-decoration:underline; font-weight:600; }
.sg-otp { position:relative; height:52px; }
.sg-account .sg-otp input[name=code] {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  opacity:0;
  z-index:1;
  cursor:text;
}
.sg-otp-cells { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(4px, 2vw, 8px); height:100%; }
.sg-otp-cells span {
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #a6a6ae;
  border-radius:10px;
  background:#fff;
  color:var(--sg-ink);
  font-size:24px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}
.sg-otp:focus-within .sg-otp-active { outline:2px solid var(--sg-ink); outline-offset:2px; }
