.creator-portal {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 0 24px;
  color: #f5f5f7;
  background: #08090c;
}

.creator-portal::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .97) 0%, rgba(8, 9, 12, .86) 35%, rgba(8, 9, 12, .38) 72%, rgba(8, 9, 12, .56) 100%),
    linear-gradient(0deg, rgba(8, 9, 12, .94) 0%, transparent 36%, rgba(8, 9, 12, .36) 100%),
    url("images/login_bg.jpg") center center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.creator-portal-header,
.creator-portal-main,
.creator-portal-footer {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.creator-portal-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.creator-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.creator-portal-brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(190px, 48vw);
  object-fit: contain;
}

.creator-portal-login .creator-portal-brand img,
.creator-portal-apply .creator-portal-brand img {
  height: 44px;
}

.creator-portal-brand span {
  color: #4da3ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.creator-portal-back,
.creator-panel-footnote a,
.creator-secondary-link,
.creator-submission-actions a {
  color: #8fc3ff;
  text-decoration: none;
}

.creator-portal-back:hover,
.creator-panel-footnote a:hover,
.creator-secondary-link:hover,
.creator-submission-actions a:hover {
  color: #fff;
  text-decoration: underline;
}

.creator-portal-main {
  max-width: 900px;
  padding: 52px 0 60px;
}

.creator-portal-intro {
  max-width: 700px;
  margin: 0 auto 28px;
  text-align: center;
}

.creator-portal-kicker,
.creator-dashboard-overline {
  margin: 0 0 10px;
  color: #4da3ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.creator-portal-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.creator-portal-intro > p:last-child {
  max-width: 620px;
  margin: 14px auto 0;
  color: #aeb2bd;
  font-size: 15px;
  line-height: 1.65;
}

.creator-panel {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: #14161c;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.creator-login-panel {
  max-width: 520px;
  margin: 0 auto;
}

.creator-panel h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 21px;
  font-weight: 750;
}

.creator-form {
  display: grid;
  gap: 18px;
}

.creator-registration-viewport {
  overflow: hidden;
}

.creator-registration-track {
  display: flex;
  width: 200%;
  align-items: flex-start;
  transition: transform .48s cubic-bezier(.22, .68, 0, 1);
  will-change: transform;
}

.creator-registration-track[data-active-step="verification"] {
  transform: translateX(-50%);
}

.creator-registration-card {
  flex: 0 0 50%;
  min-width: 0;
  box-sizing: border-box;
}

.creator-registration-card h2 {
  margin-bottom: 12px;
}

.creator-registration-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.creator-registration-step-label {
  margin-right: auto;
  color: #aeb2bd;
  font-size: 12px;
}

.creator-registration-back {
  border: 1px solid #41444e;
  background: #202229;
}

.creator-registration-back:hover,
.creator-registration-back:focus {
  background: #30333c;
}

@media (prefers-reduced-motion: reduce) {
  .creator-registration-track {
    transition: none;
  }
}

.creator-registration-help {
  margin: 0 0 18px;
  color: #aeb2bd;
  font-size: 13px;
  line-height: 1.6;
}

.creator-camera-field {
  display: grid;
  align-content: start;
  gap: 10px;
}

.creator-camera-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.creator-camera-slides {
  display: contents;
}

.creator-camera-switch[hidden] {
  display: none;
}

.creator-camera-switch {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(77, 163, 255, .6);
  border-radius: 6px;
  color: #d9ecff;
  background: rgba(23, 40, 58, .75);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.creator-camera-switch:hover,
.creator-camera-switch:focus-visible {
  border-color: #8fc3ff;
  background: #21466a;
}

.creator-photo-guide {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.creator-photo-guide[hidden] {
  display: none;
}

.creator-photo-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.creator-photo-guide-header img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 126px;
  object-fit: contain;
}

.creator-photo-guide h3 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}

.creator-photo-guide-stage {
  display: grid;
  min-height: 210px;
  place-items: center;
}

.creator-photo-guide-person {
  display: block;
  width: min(100%, 260px);
  max-height: 230px;
  overflow: visible;
}

.creator-photo-guide-person-body {
  transform-origin: 160px 180px;
  animation: creator-photo-guide-breathe 3s ease-in-out infinite;
}

.creator-photo-guide-phone {
  transform-origin: 205px 190px;
  animation: creator-photo-guide-lift 6s ease-in-out infinite;
}

.creator-photo-guide-flash {
  transform-box: fill-box;
  transform-origin: center;
  animation: creator-photo-guide-flash 6s ease-in-out infinite;
}

.creator-photo-guide-steps {
  position: relative;
  min-height: 40px;
  color: #e7edf7;
  font-size: 13px;
  font-weight: 650;
}

.creator-photo-guide-steps p {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  opacity: 0;
  place-items: center;
  line-height: 1.45;
  text-align: center;
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.creator-photo-guide-steps p:nth-child(1) {
  animation-name: creator-photo-guide-step-one;
}

.creator-photo-guide-steps p:nth-child(2) {
  animation-name: creator-photo-guide-step-two;
}

.creator-photo-guide-steps p:nth-child(3) {
  animation-name: creator-photo-guide-step-three;
}

@keyframes creator-photo-guide-step-one {
  0%, 4% { opacity: 0; }
  8%, 28% { opacity: 1; }
  32%, 100% { opacity: 0; }
}

@keyframes creator-photo-guide-step-two {
  0%, 36% { opacity: 0; }
  40%, 60% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

@keyframes creator-photo-guide-step-three {
  0%, 68% { opacity: 0; }
  72%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

.creator-photo-guide-loop {
  margin: 12px 0 0;
  color: #9ba9bd;
  font-size: 11px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .creator-photo-guide-person-body,
  .creator-photo-guide-phone,
  .creator-photo-guide-flash,
  .creator-photo-guide-steps p {
    animation: none;
  }

  .creator-photo-guide-steps p:first-child {
    position: static;
    opacity: 1;
  }
}

@keyframes creator-photo-guide-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes creator-photo-guide-lift {
  0%, 12%, 100% { transform: translateY(24px) rotate(5deg); }
  36%, 72% { transform: translateY(0) rotate(0); }
  86% { transform: translateY(0) rotate(0); }
}

@keyframes creator-photo-guide-flash {
  0%, 34%, 82%, 100% { opacity: .2; transform: scale(.65); }
  42%, 56% { opacity: 1; transform: scale(1.12); }
  64% { opacity: .35; transform: scale(.85); }
}

.creator-camera-label {
  color: #e4e6eb;
  font-size: 13px;
  font-weight: 650;
}

.creator-camera-preview {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid #41444e;
  border-radius: 8px;
  background: #090a0e;
}

.creator-camera-preview video,
.creator-camera-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-camera-preview video {
  transform: scaleX(-1);
}

.creator-camera-face-guide {
  position: absolute;
  z-index: 1;
  top: 12%;
  left: 50%;
  width: 58%;
  height: 72%;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .18);
  pointer-events: none;
  transform: translateX(-50%);
}

.creator-camera-preview video[hidden],
.creator-camera-preview img[hidden],
.creator-camera-actions [hidden] {
  display: none;
}

.creator-camera-preview p {
  max-width: 360px;
  margin: 0;
  padding: 24px;
  color: #aeb2bd;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.creator-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.creator-camera-button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #4da3ff;
  border-radius: 6px;
  color: #fff;
  background: #17283a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.creator-camera-button:hover:not(:disabled),
.creator-camera-button:focus-visible {
  background: #21466a;
}

.creator-camera-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.creator-camera-status {
  min-height: 20px;
  margin: 0;
  color: #aeb2bd;
  font-size: 12px;
  line-height: 1.5;
}

.creator-camera-status[data-state="error"] {
  color: #ff8585;
}

.creator-camera-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.creator-registration-footnote {
  margin-top: 18px;
  text-align: center;
}

.creator-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.creator-form label {
  display: grid;
  gap: 7px;
  color: #e4e6eb;
  font-size: 13px;
  font-weight: 650;
}

.creator-form .creator-remember {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #d6d7dc;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.creator-form .creator-remember input {
  flex: 0 0 15px;
  width: 15px;
  min-height: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #4da3ff;
}

.creator-form .creator-remember input:focus {
  box-shadow: none;
}

.creator-form-wide {
  grid-column: 1 / -1;
}

.creator-form input,
.creator-form select,
.creator-form textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #41444e;
  border-radius: 6px;
  outline: none;
  color: #f5f5f7;
  background: #202229;
  font: inherit;
  font-weight: 400;
}

.creator-form textarea {
  min-height: 110px;
  resize: vertical;
}

.creator-form input:focus,
.creator-form select:focus,
.creator-form textarea:focus {
  border-color: #4da3ff;
  box-shadow: 0 0 0 3px rgba(77, 163, 255, .16);
}

.creator-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #ed1732;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.creator-button:hover,
.creator-button:focus {
  color: #fff;
  background: #cf1029;
  text-decoration: none;
}

.creator-rights-note,
.creator-panel-footnote,
.creator-empty {
  color: #aeb2bd;
  font-size: 13px;
  line-height: 1.6;
}

.creator-rights-check {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: flex-start;
  gap: 10px !important;
  line-height: 1.5;
}

.creator-rights-check input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 2px 0 0;
  accent-color: #ed1732;
}

.creator-panel-footnote {
  margin: 18px 0 0;
}

.creator-alert {
  position: fixed;
  z-index: 10000;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  width: min(460px, calc(100vw - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
  padding: 15px 16px 17px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(23, 25, 31, .97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), 0 3px 12px rgba(0, 0, 0, .22);
  color: #f5f6f8;
  font-size: 13px;
  line-height: 1.5;
  transform: translate(-50%, -14px);
  opacity: 0;
  animation: creator-notification-enter .24s ease-out forwards;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.creator-alert::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #f04456;
  content: "";
}

.creator-alert::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 4px;
  height: 2px;
  background: #f04456;
  content: "";
  transform-origin: left;
  animation: creator-notification-countdown 3s linear forwards;
}

.creator-alert-message {
  flex: 1 1 auto;
}

.creator-alert-close {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  color: #c8cbd3;
  background: rgba(255, 255, 255, .045);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.creator-alert-close:hover,
.creator-alert-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  outline: 2px solid rgba(255, 255, 255, .45);
  outline-offset: 2px;
}

.creator-alert.is-dismissing {
  pointer-events: none;
  animation: creator-notification-exit .18s ease-in forwards;
}

.creator-alert-error {
  border-color: rgba(255, 80, 96, .25);
}

.creator-alert-notice {
  border-color: rgba(77, 163, 255, .3);
}

.creator-alert-notice::before,
.creator-alert-notice::after {
  background: #4da3ff;
}

@keyframes creator-notification-enter {
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes creator-notification-exit {
  to {
    transform: translate(-50%, -10px);
    opacity: 0;
  }
}

@keyframes creator-notification-countdown {
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .creator-alert,
  .creator-alert.is-dismissing,
  .creator-alert::after,
  .creator-alert-close {
    animation-duration: .01ms;
    transition-duration: .01ms;
  }
}

.creator-dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}

.creator-dashboard-heading h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 24px;
}

.creator-dashboard-heading > div:first-child > p:last-child {
  margin: 0;
  color: #aeb2bd;
  font-size: 13px;
}

.creator-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.creator-dashboard-actions form {
  margin: 0;
}

.creator-logout,
.creator-submission-actions button {
  padding: 0;
  border: 0;
  color: #aeb2bd;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.creator-logout:hover,
.creator-submission-actions button:hover {
  color: #fff;
}

.creator-submission-list {
  display: grid;
  gap: 12px;
}

.creator-submission {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: #191b22;
}

.creator-submission-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.creator-submission-type {
  color: #8fc3ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.creator-submission h3 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 16px;
}

.creator-submission > p {
  margin: 12px 0 0;
  color: #b6bac5;
  font-size: 13px;
  line-height: 1.6;
}

.creator-submission .creator-admin-note {
  color: #c4e0ff;
}

.creator-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}

.creator-status-pending {
  color: #f2d38a;
  background: rgba(181, 132, 31, .17);
}

.creator-status-approved {
  color: #91e4b2;
  background: rgba(33, 145, 82, .16);
}

.creator-status-rejected {
  color: #ffabb5;
  background: rgba(188, 29, 47, .16);
}

.creator-submission-actions {
  display: flex;
  gap: 16px;
  margin-top: 13px;
}

.creator-portal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.creator-portal-footer a {
  color: #9da2ae;
  font-size: 12px;
}

@media (max-width: 640px) {
  .creator-portal {
    padding: 0 15px;
  }

  .creator-portal::before {
    background:
      linear-gradient(180deg, rgba(8, 9, 12, .62), #08090c 38%, #08090c 100%),
      url("images/login_bg.jpg") 68% top / auto 340px no-repeat;
  }

  .creator-portal-header {
    min-height: 64px;
  }

  .creator-portal-login .creator-portal-brand img,
  .creator-portal-apply .creator-portal-brand img {
    height: 40px;
  }

  .creator-portal-main {
    padding: 34px 0 42px;
  }

  .creator-registration-actions {
    flex-wrap: wrap;
  }

  .creator-registration-actions .creator-button {
    flex: 1 1 auto;
  }

  .creator-portal-intro {
    margin-bottom: 22px;
    text-align: left;
  }

  .creator-portal-intro h1 {
    font-size: 31px;
  }

  .creator-portal-intro > p:last-child {
    margin-left: 0;
    font-size: 14px;
  }

  .creator-form-grid {
    grid-template-columns: 1fr;
  }

  .creator-camera-workspace {
    display: block;
    overflow: hidden;
    touch-action: pan-y;
  }

  .creator-camera-slides {
    display: flex;
    width: 200%;
    align-items: start;
    transition: transform .42s cubic-bezier(.22, .68, 0, 1);
    will-change: transform;
  }

  .creator-camera-slides[data-active-slide="camera"] {
    transform: translateX(-50%);
  }

  .creator-camera-slides.is-dragging {
    transition: none;
  }

  .creator-camera-field,
  .creator-photo-guide {
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 0 8px;
  }

  .creator-camera-field {
    order: 1;
    justify-items: center;
  }

  .creator-camera-label,
  .creator-camera-status,
  .creator-camera-actions,
  .creator-camera-field > .creator-camera-switch {
    width: min(100%, 320px);
  }

  .creator-camera-actions {
    justify-content: center;
  }

  .creator-photo-guide {
    order: 0;
    display: grid;
    justify-items: center;
  }

  .creator-photo-guide-header,
  .creator-photo-guide h3,
  .creator-photo-guide-stage,
  .creator-photo-guide-steps,
  .creator-photo-guide-loop,
  .creator-photo-guide > .creator-camera-switch {
    width: min(100%, 320px);
  }

  .creator-camera-preview {
    width: min(100%, 320px);
  }

  .creator-photo-guide-stage {
    min-height: 190px;
  }

  .creator-photo-guide-person {
    width: min(100%, 240px);
    max-height: 205px;
  }

  .creator-form-wide {
    grid-column: auto;
  }

  .creator-dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-dashboard-actions {
    width: 100%;
    justify-content: space-between;
  }

  .creator-submission-top {
    flex-direction: column;
    gap: 9px;
  }
}
