/* Public entry and Creator onboarding follow the existing light Creator V1 visual system. */
body:has(.portal-auth-entry),
body:has(#login-email),
body:has(ol[aria-label="Etapas do cadastro"]) {
  background: #f5f6f2;
  color-scheme: light;
}

/* The published /auth route still uses the original Card structure. */
body:has(#login-email) {
  --background: 75 17% 96%;
  --foreground: 162 17% 15%;
  --card: 0 0% 100%;
  --card-foreground: 162 17% 15%;
  --muted: 75 17% 96%;
  --muted-foreground: 153 6% 39%;
  --border: 103 12% 89%;
  --input: 103 12% 81%;
  --ring: 42 65% 27%;
}
body:has(#login-email) #root > div { background: #f5f6f2; }
body:has(#login-email) #root > div > .fixed { display: none; }
body:has(#login-email) #root > div > .relative > div {
  max-width: 450px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body:has(#login-email) #root > div > .relative > div > div { padding: 0; }
body:has(#login-email) #root > div > .relative > div > div:first-child {
  padding-bottom: 28px;
  color: #202d29;
}
body:has(#login-email) #root > div > .relative > div > div:first-child > div:first-child {
  display: none;
}
body:has(#login-email) #root > div > .relative > div > div:first-child::before {
  content: '';
  display: block;
  width: 210px;
  height: 58px;
  margin: 0 auto 26px;
  background: url('/creator-v1/login-wordmark.png') center / contain no-repeat;
}
body:has(#login-email) #root > div > .relative > div > div:first-child h3 {
  color: #202d29;
  font-size: clamp(29px, 5vw, 36px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
body:has(#login-email) #root > div > .relative > div > div:first-child p {
  max-width: 365px;
  margin: 7px auto 0;
  color: #5e6964;
  font-size: 16px;
}
body:has(#login-email) #root > div > .relative > div form {
  padding: 24px;
  border: 1px solid #dfe5dc;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 45px rgb(32 45 41 / 6%);
}
body:has(#login-email) #root > div > .relative > div form label { color: #202d29; font-weight: 600; }
body:has(#login-email) #root > div > .relative > div form input {
  min-height: 54px;
  border: 1px solid #d2dcd1;
  border-radius: 12px;
  background: #fff;
  color: #202d29;
  font-size: 16px;
}
body:has(#login-email) #root > div > .relative > div form > button[type="submit"] {
  min-height: 54px;
  border-radius: 12px;
  background: #f2c94c;
  color: #202d29;
  font-size: 16px;
  font-weight: 700;
}
body:has(#login-email) #root > div > .relative > div form button[type="button"].text-sm { color: #65716b; }
body:has(#login-email) #root > div > .relative > div [class*="border-t"]:has(a) {
  margin-top: 28px;
  padding: 20px 24px 22px;
  border: 1px solid #dfe5dc;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 45px rgb(32 45 41 / 4%);
}
body:has(#login-email) #root > div > .relative > div [class*="border-t"]:has(a) a button {
  color: #202d29;
  border-radius: 11px;
}

.portal-auth-entry {
  --background: 75 17% 96%;
  --foreground: 162 17% 15%;
  --card: 0 0% 100%;
  --card-foreground: 162 17% 15%;
  --muted-foreground: 153 6% 39%;
  --border: 103 12% 89%;
  --input: 103 12% 81%;
  --ring: 42 65% 27%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% -12%, #fffdf4 0, #f5f6f2 52%);
  color: #202d29;
}

.portal-auth-entry .creator-auth-container { max-width: 450px; }
.portal-auth-entry .creator-auth-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.portal-auth-entry .creator-auth-card > div { padding: 0; }
.portal-auth-entry .portal-auth-heading { margin-bottom: 27px; }
.portal-auth-entry .portal-auth-heading .flex { margin-bottom: 0; }
.portal-auth-entry .portal-auth-wordmark { width: 210px; margin: 0 auto 28px; }
.portal-auth-entry .portal-auth-heading h3 {
  color: #202d29;
  font-size: clamp(29px, 5vw, 36px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.portal-auth-entry .portal-auth-heading p {
  max-width: 365px;
  margin: 6px auto 0;
  color: #5e6964;
  font-size: 16px;
}
.portal-auth-entry .creator-auth-card form {
  padding: 24px;
  border: 1px solid #dfe5dc;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 45px rgb(32 45 41 / 6%);
}
.portal-auth-entry .creator-auth-card form label { color: #202d29; font-weight: 600; }
.portal-auth-entry .creator-auth-card form input {
  background: #fff;
  border: 1px solid #d2dcd1;
  color: #202d29;
  min-height: 54px;
  border-radius: 12px;
}
.portal-auth-entry .creator-auth-card form > button[type="submit"] {
  margin-top: 8px;
  min-height: 54px;
  background: #f2c94c;
  border-radius: 12px;
  color: #202d29;
}
.portal-auth-entry .creator-auth-card form button[type="button"].text-sm {
  color: #65716b;
}
.portal-auth-entry .portal-auth-portals {
  margin-top: 28px;
  padding: 20px 24px 22px;
  border: 1px solid #dfe5dc;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 45px rgb(32 45 41 / 4%);
}
.portal-auth-entry .portal-auth-portals a > button {
  min-height: 46px;
  border-radius: 11px;
  color: #202d29;
}
.portal-auth-entry .portal-auth-portals a:first-child > button {
  border-color: #d2dcd1;
  background: #f9faf8;
}

body:has(ol[aria-label="Etapas do cadastro"]) {
  --background: 75 17% 96%;
  --foreground: 162 17% 15%;
  --card: 0 0% 100%;
  --card-foreground: 162 17% 15%;
  --muted: 75 17% 96%;
  --muted-foreground: 153 6% 39%;
  --border: 103 12% 89%;
  --input: 103 12% 81%;
  --ring: 42 65% 27%;
}
body:has(ol[aria-label="Etapas do cadastro"]) #root > div { background: #f5f6f2; }
body:has(ol[aria-label="Etapas do cadastro"]) #root > div > div {
  max-width: 760px;
  padding-top: clamp(32px, 5vw, 58px);
}
body:has(ol[aria-label="Etapas do cadastro"]) header:has(ol) { gap: 27px; }
body:has(ol[aria-label="Etapas do cadastro"]) header:has(ol) > img { display: none; }
body:has(ol[aria-label="Etapas do cadastro"]) header:has(ol)::before {
  content: '';
  display: block;
  width: 220px;
  height: 58px;
  background: url('/creator-v1/login-wordmark.png') center / contain no-repeat;
}
body:has(ol[aria-label="Etapas do cadastro"]) ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  gap: 5px;
  padding: 13px 12px;
  border: 1px solid #e1e6df;
  border-radius: 15px;
  background: rgb(255 255 255 / 85%);
}
body:has(ol[aria-label="Etapas do cadastro"]) ol > li {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  text-align: center;
}
body:has(ol[aria-label="Etapas do cadastro"]) ol > li > span:first-child {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3f5f1;
  border-color: #dce3da;
  color: #617068;
}
body:has(ol[aria-label="Etapas do cadastro"]) ol > li > span:first-child[aria-current="step"] {
  background: #f2c94c;
  border-color: #f2c94c;
  color: #202d29;
}
body:has(ol[aria-label="Etapas do cadastro"]) ol > li > span:first-child:has(svg) {
  background: #edf5ec;
  border-color: #b8d1b6;
  color: #246747;
}
body:has(ol[aria-label="Etapas do cadastro"]) ol > li > span:nth-child(2) {
  display: block;
  color: #67736c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
body:has(ol[aria-label="Etapas do cadastro"]) ol > li:has([aria-current="step"]) > span:nth-child(2) {
  color: #202d29;
  font-weight: 700;
}
body:has(ol[aria-label="Etapas do cadastro"]) ol > li > span:last-child:not(:nth-child(2)) { display: none; }
body:has(ol[aria-label="Etapas do cadastro"]) main { margin-top: 27px; }
body:has(ol[aria-label="Etapas do cadastro"]) main > div {
  border: 1px solid #dfe5dc;
  border-radius: 20px;
  background: #fff;
  color: #202d29;
  box-shadow: 0 18px 45px rgb(32 45 41 / 6%);
}
body:has(ol[aria-label="Etapas do cadastro"]) main > div > div { padding: 26px 30px; }
body:has(ol[aria-label="Etapas do cadastro"]) main > div > div:first-child { padding-bottom: 4px; }
body:has(ol[aria-label="Etapas do cadastro"]) main h3 {
  color: #202d29;
  font-size: 23px;
  letter-spacing: -0.035em;
}
body:has(ol[aria-label="Etapas do cadastro"]) main label { color: #26352d; font-weight: 600; }
body:has(ol[aria-label="Etapas do cadastro"]) main input {
  height: 52px;
  border: 1px solid #d2dcd1;
  border-radius: 12px;
  background: #fff;
  color: #202d29;
  font-size: 16px;
}
body:has(ol[aria-label="Etapas do cadastro"]) main input:disabled {
  background: #f1f4ef;
  color: #5e6964;
  opacity: 1;
}
body:has(ol[aria-label="Etapas do cadastro"]) main input::placeholder { color: #7d8981; }
body:has(ol[aria-label="Etapas do cadastro"]) main form > div.flex.rounded-md {
  border-color: #dfe7df;
  background: #f6f9f4;
  color: #526359;
}
body:has(ol[aria-label="Etapas do cadastro"]) main form > button[type="submit"] {
  min-height: 54px;
  border-radius: 12px;
  background: #f2c94c;
  color: #202d29;
  font-size: 16px;
  font-weight: 700;
}
body:has(ol[aria-label="Etapas do cadastro"]) main form > button[type="submit"]:hover { background: #eabe3e; }
body:has(ol[aria-label="Etapas do cadastro"]) :is(input, button, a):focus-visible {
  outline: 3px solid #a7781a;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body:has(#login-email) #root > div > .relative > div form { padding: 20px; }
  .portal-auth-entry { padding: 28px 16px; align-items: flex-start; }
  .portal-auth-entry .creator-auth-card form { padding: 20px; }
  body:has(ol[aria-label="Etapas do cadastro"]) #root > div > div { padding-inline: 16px; }
  body:has(ol[aria-label="Etapas do cadastro"]) ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 13px;
  }
  body:has(ol[aria-label="Etapas do cadastro"]) main > div > div { padding: 22px 19px; }
  body:has(ol[aria-label="Etapas do cadastro"]) main > div > div:first-child { padding-bottom: 0; }
}
