/* Login essencial no mesmo sistema neobrutalista do Egghead. */
.migration-auth-stage {
  display: contents;
}

.migration-auth-brand,
.migration-auth-heading > span {
  display: none;
}

body.is-public-signed-out {
  min-height: 100vh;
  overflow: hidden;
}

body.is-public-signed-out :is(.app-shell, .mobile-overlay) {
  visibility: hidden !important;
  pointer-events: none !important;
  user-select: none;
}

body.is-public-signed-out .app-shell {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden;
}

body.is-public-signed-out .migration-auth-modal {
  display: grid;
  overflow-x: hidden;
  overflow-y: auto;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 23, 23, .065) 1px, transparent 1px),
    #f2efe7;
  background-size: 22px 22px;
}

body.is-public-signed-out .migration-auth-backdrop,
body.is-public-signed-out .migration-auth-dialog > header > button,
body.is-public-signed-out .migration-auth-dialog > footer {
  display: none;
}

body.is-public-signed-out .migration-auth-stage {
  position: relative;
  display: block;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  border: 2px solid #171717;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 8px 8px 0 #171717;
}

body.is-public-signed-out .migration-auth-stage::before {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #f4cb53 0 33.333%, #81b8d6 33.333% 66.666%, #75bd85 66.666% 100%);
  content: "";
}

body.is-public-signed-out .migration-auth-dialog {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  width: 100%;
  min-height: 0;
  max-width: none;
  overflow: hidden;
  flex-direction: column;
  transform: none;
  border: 0;
  border-radius: inherit;
  background: #fffdf8;
  box-shadow: none;
}

body.is-public-signed-out .migration-auth-dialog > header {
  display: block;
  min-height: 0;
  padding: 31px 32px 21px;
  border: 0;
  background: #fffdf8;
}

body.is-public-signed-out .migration-auth-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

body.is-public-signed-out .migration-auth-logo {
  display: block;
  width: 138px;
  height: auto;
}

body.is-public-signed-out .migration-auth-dialog h2 {
  margin: 0;
  color: #171717;
  font-family: "Egghead Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 35px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
}

body.is-public-signed-out .migration-auth-signed-out {
  padding: 23px 32px 32px;
  border-top: 2px solid #171717;
  background: #fbfaf6;
}

body.is-public-signed-out .migration-google-button {
  display: flex;
  width: calc(100% - 3px);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid #171717;
  border-radius: 7px;
  color: #171717;
  background: #fff;
  box-shadow: 3px 3px 0 #171717;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

body.is-public-signed-out .migration-google-button:hover {
  box-shadow: 1px 1px 0 #171717;
  transform: translate(2px, 2px);
}

body.is-public-signed-out .migration-google-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

body.is-public-signed-out .migration-google-button > span {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 950;
}

body.is-public-signed-out .migration-auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 19px 0;
  color: #77736b;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

body.is-public-signed-out .migration-auth-divider::before,
body.is-public-signed-out .migration-auth-divider::after {
  height: 0;
  flex: 1;
  border-top: 1.5px dashed #aaa59b;
  background: transparent;
  content: "";
}

body.is-public-signed-out .migration-auth-signed-out form {
  display: grid;
  gap: 16px;
}

body.is-public-signed-out .migration-auth-field {
  display: grid;
  gap: 7px;
}

body.is-public-signed-out .migration-auth-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.is-public-signed-out .migration-auth-field label,
body.is-public-signed-out .migration-auth-field-heading > label {
  color: #171717;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.is-public-signed-out .migration-auth-field-heading > button {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 2px 0;
  border: 0;
  color: #413e38;
  background: transparent;
  box-shadow: none;
  font-size: 8px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.is-public-signed-out .migration-auth-field-heading > button:is(:hover, :focus-visible) {
  color: #866400;
}

body.is-public-signed-out .migration-auth-field-heading > button:disabled {
  cursor: wait;
  opacity: .65;
}

body.is-public-signed-out .migration-auth-control {
  position: relative;
  display: flex;
  width: calc(100% - 2px);
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid #171717;
  border-radius: 7px;
  color: #171717;
  background: #f4f2ec;
  box-shadow: 2px 2px 0 #171717;
  transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

body.is-public-signed-out .migration-auth-control:focus-within {
  background: #fff;
  box-shadow: 3px 3px 0 #81b8d6;
  transform: translate(-1px, -1px);
}

body.is-public-signed-out .migration-auth-control > svg {
  position: static;
  width: 43px;
  height: 48px;
  flex: 0 0 43px;
  padding: 12px;
  border-right: 1.5px solid #171717;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  background: #dce8ed;
  pointer-events: none;
}

body.is-public-signed-out .migration-auth-field:nth-child(2) .migration-auth-control > svg {
  background: #dfe9db;
}

body.is-public-signed-out .migration-auth-control > input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #171717;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 750;
}

body.is-public-signed-out .migration-auth-control > input::placeholder {
  color: #77736b;
  opacity: 1;
}

body.is-public-signed-out .migration-auth-submit {
  display: flex;
  width: calc(100% - 4px);
  min-height: 49px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 0 16px;
  border: 1.5px solid #171717;
  border-radius: 7px;
  color: #fff;
  background: #20202a;
  box-shadow: 4px 4px 0 #77736b;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

body.is-public-signed-out .migration-auth-submit:hover {
  box-shadow: 2px 2px 0 #77736b;
  transform: translate(2px, 2px);
}

body.is-public-signed-out .migration-auth-message {
  min-height: 0;
  margin: 0;
  padding: 0 32px 22px;
  color: #9c2828;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.45;
}

body.is-public-signed-out .migration-auth-message:empty {
  display: none;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-modal {
  background:
    radial-gradient(circle at 1px 1px, rgba(232, 228, 218, .075) 1px, transparent 1px),
    #181a1f;
  background-size: 22px 22px;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-stage {
  border-color: #0d0e11;
  background: #23262d;
  box-shadow: 8px 8px 0 #0d0e11;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-dialog,
html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-dialog > header,
html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-signed-out {
  color: #e8e4da;
  border-color: #0d0e11;
  background: #23262d !important;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-dialog h2,
html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-field label,
html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-field-heading > label {
  color: #f0ece3;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-field-heading > button {
  color: #beb9af;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-google-button {
  color: #171717;
  background: #f4f1e9;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-control {
  color: #171717;
  background: #d7d3c9;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-control > input {
  color: #171717;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-divider {
  color: #b9b4aa;
}

html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-divider::before,
html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-divider::after {
  border-color: #777982;
}

@media (max-width: 520px) {
  body.is-public-signed-out .migration-auth-modal {
    padding: 15px;
  }

  body.is-public-signed-out .migration-auth-stage {
    width: min(430px, calc(100vw - 26px));
    border-radius: 11px;
    box-shadow: 6px 6px 0 #171717;
  }

  body.is-public-signed-out .migration-auth-dialog > header {
    padding: 28px 23px 19px;
  }

  body.is-public-signed-out .migration-auth-logo {
    width: 126px;
  }

  body.is-public-signed-out .migration-auth-dialog h2 {
    font-size: 32px;
  }

  body.is-public-signed-out .migration-auth-signed-out {
    padding: 21px 23px 27px;
  }

  body.is-public-signed-out .migration-auth-message {
    padding: 0 23px 19px;
  }

  html[data-egghead-theme="dark"] body.is-public-signed-out .migration-auth-stage {
    box-shadow: 6px 6px 0 #0d0e11;
  }
}

@media (max-height: 650px) {
  body.is-public-signed-out .migration-auth-modal {
    align-items: start;
    padding-block: 12px;
  }
}
