:root {
  color-scheme: light;
  --ink: #14343c;
  --muted: #71868b;
  --cyan: #06b6c8;
  --cyan-dark: #078b9a;
  --cyan-light: #e8fbfc;
  --line: #e5eeee;
  --canvas: #f3f9f9;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 12% 12%, rgba(181, 244, 246, .55), transparent 34%),
    var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible {
  outline: 3px solid rgba(6, 182, 200, .55);
  outline-offset: 3px;
}
.auth-shell {
  width: min(100%, 980px);
  min-height: 610px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  overflow: hidden;
  border: 1px solid rgba(218, 234, 235, .9);
  border-radius: 25px;
  background: white;
  box-shadow: 0 25px 80px rgba(27, 74, 81, .11);
}
.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  background: linear-gradient(150deg, #06b6c8 0%, #0798a9 100%);
  color: white;
}
.brand-panel::before, .brand-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}
.brand-panel::before { width: 380px; height: 380px; right: -210px; top: 110px; box-shadow: 0 0 0 28px rgba(255,255,255,.07), 0 0 0 58px rgba(255,255,255,.05); }
.brand-panel::after { width: 190px; height: 190px; left: -125px; bottom: -30px; }
.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font: 800 21px Manrope, sans-serif;
  letter-spacing: -.7px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 13px;
  background: rgba(255,255,255,.18);
}
.brand-mark img { display: block; width: 30px; height: 30px; }
.panel-copy { position: relative; z-index: 1; max-width: 350px; margin: auto 0; padding: 48px 0; }
.panel-kicker { margin: 0 0 14px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.panel-copy h1 { margin: 0 0 13px; font: 800 clamp(30px, 4vw, 42px)/1.12 Manrope, sans-serif; letter-spacing: -1.6px; }
.panel-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.65; }
.panel-foot { position: relative; z-index: 1; color: rgba(255,255,255,.72); font-size: 11px; }
.marketplace-backdrop, .marketplace-motion { display: none; }
@media (min-width: 701px) {
  .brand-panel.marketplace-panel { isolation: isolate; background: #14343c; }
  .marketplace-backdrop { display: block; position: absolute; inset: -24px; z-index: -1; overflow: hidden; pointer-events: none; }
  .marketplace-backdrop::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: calc(100% + 896px);
    background: #f5f9f9 url("marketplace-preview.svg") center top / 560px 896px repeat-y;
    filter: blur(5px);
    animation: marketplace-browse 36s linear infinite;
  }
  .brand-panel.marketplace-panel::before { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(180deg, rgba(12, 39, 45, .68), rgba(12, 39, 45, .84) 48%, rgba(12, 39, 45, .78)); }
  .brand-panel.marketplace-panel::after { display: none; }
  .marketplace-motion { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; position: relative; z-index: 1; margin-top: 14px; color: rgba(255, 255, 255, .9); font-size: 10px; cursor: pointer; }
  .marketplace-motion input { width: 14px; height: 14px; margin: 0; accent-color: var(--cyan); }
  .marketplace-panel:has(.marketplace-motion input:checked) .marketplace-backdrop::before { animation-play-state: paused; }
}
@keyframes marketplace-browse { to { transform: translateY(-896px); } }
.form-panel { display: grid; align-content: center; padding: 54px clamp(32px, 6vw, 70px); }
.form-content { width: min(100%, 380px); margin: 0 auto; }
.form-heading { margin-bottom: 27px; }
.form-heading h2 { margin: 0 0 7px; font: 800 27px Manrope, sans-serif; letter-spacing: -.8px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
[hidden] { display: none !important; }
.auth-choices { display: grid; gap: 12px; }
.auth-choice { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; border: 1px solid #d5e8e9; border-radius: 10px; background: white; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.auth-choice:hover:not(:disabled) { border-color: var(--cyan); background: #f3fbfb; }
.auth-choice:disabled { opacity: .7; cursor: wait; }
.auth-choice svg, .google-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.auth-choice svg { color: var(--cyan-dark); }
.google-icon { display: block; }
.google-remember { color: #60777c; font-size: 11px; }
.google-terms { margin: 1px 0 0; }
.google-account-note { margin: 0 0 3px; color: #60777c; font-size: 12px; line-height: 1.5; }
.auth-back { margin: 0 0 19px; padding: 0; border: 0; background: transparent; color: var(--cyan-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { color: #48646a; font-size: 12px; font-weight: 700; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fbfdfd;
  color: var(--ink);
  font-size: 13px;
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder { color: #a0afb2; }
.field input:focus { border-color: #69d1d8; box-shadow: 0 0 0 3px #e2f9fa; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 68px; }
.password-strength { display: grid; gap: 5px; margin-top: 8px; }
.password-strength-meter { height: 6px; overflow: hidden; border-radius: 999px; background: #e8eeee; }
.password-strength-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: #d45862; transition: width .16s, background-color .16s; }
.password-strength-meter[data-strength="fair"] span { background: #d89a32; }
.password-strength-meter[data-strength="good"] span { background: #168b9a; }
.password-strength-meter[data-strength="strong"] span { background: #20845e; }
.password-strength-label, .password-strength-hint { margin: 0; font-size: 11px; line-height: 1.4; }
.password-strength-label { color: #60777c; font-weight: 700; }
.password-strength-hint { color: var(--muted); }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 800;
}
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; color: #60777c; font-size: 11px; }
.check-row { display: inline-flex; align-items: center; gap: 7px; }
.check-row input { accent-color: var(--cyan); }
.form-options a, .terms a { color: var(--cyan-dark); font-weight: 700; }
.terms { display: flex; align-items: flex-start; gap: 8px; margin: 1px 0 17px; color: #60777c; font-size: 11px; line-height: 1.5; }
.terms input { margin-top: 2px; accent-color: var(--cyan); }
.submit-btn {
  width: 100%;
  min-height: 47px;
  border: 0;
  border-radius: 10px;
  background: var(--cyan);
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(6,182,200,.2);
  transition: transform .16s, background .16s;
}
.submit-btn:hover { transform: translateY(-1px); background: var(--cyan-dark); }
.submit-btn:disabled { cursor: wait; opacity: .7; transform: none; }
.login-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.login-preview-btn {
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid #d5e8e9;
  border-radius: 10px;
  background: white;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.login-preview-btn:hover:not(:disabled) { border-color: var(--cyan); background: #f3fbfb; }
.login-preview-btn:disabled { cursor: wait; opacity: .7; }
.form-status { min-height: 18px; margin: 12px 0 0; color: #b44450; font-size: 12px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.success { color: #16764e; }
.form-switch { margin: 19px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-switch a { color: var(--cyan-dark); font-weight: 800; }
.register-divider, .register-switch { display: none; }
.register-page [data-auth-form]:not([hidden]) ~ .register-switch { display: block; }
html:has(.login-success-animation:not([hidden])),
body:has(.login-success-animation:not([hidden])) { overflow: hidden; }
.login-success-animation {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 54, 60, .94);
  color: white;
  text-align: center;
  animation: login-overlay-appear .24s ease-out both;
}
.login-success-content { display: grid; justify-items: center; gap: 12px; }
.login-success-logo {
  position: relative;
  width: min(84vw, 360px);
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 36px;
  background: white;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
  animation: login-subtitle-arrive .24s ease-out both;
}
.login-success-logo::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 44px;
  animation: login-logo-ripple .65s ease-out .95s both;
}
.login-handshake { display: block; width: 100%; height: auto; overflow: visible; }
.login-success-marketplace { margin-top: -6px; color: var(--muted); font: 600 11px "DM Sans", Arial, sans-serif; letter-spacing: 2.4px; text-transform: uppercase; }
.login-hand { transform-box: view-box; transform-origin: 50% 70%; animation: login-hands-join 1.25s cubic-bezier(.22, 1, .36, 1) both, login-hands-finish .12s linear 1.25s both; }
.login-hand--left { --hand-x: -95px; --hand-angle: -9deg; }
.login-hand--right { --hand-x: 95px; --hand-angle: 9deg; }
.login-logo-complete { opacity: 0; animation: login-logo-complete .12s linear 1.25s both; }
.login-success-content h2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .28em; margin: 8px 0 0; font: 800 24px Manrope, sans-serif; letter-spacing: -.5px; }
.login-success-content h2 span { display: inline-block; opacity: 0; animation: login-heading-rejoin .7s cubic-bezier(.16, 1, .3, 1) both; }
.login-success-content h2 span:nth-child(1) { --start-x: -30px; --start-y: -16px; animation-delay: .4s; }
.login-success-content h2 span:nth-child(2) { --start-x: 26px; --start-y: 13px; animation-delay: .52s; }
.login-success-content h2 span:nth-child(3) { --start-x: -20px; --start-y: 15px; animation-delay: .64s; }
.login-success-content h2 span:nth-child(4) { --start-x: 32px; --start-y: -12px; animation-delay: .76s; }
.login-success-content p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 13px; opacity: 0; animation: login-subtitle-arrive .4s ease-out 1.1s both; }
@keyframes login-overlay-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes login-hands-join {
  0%, 12% { transform: translateX(var(--hand-x)) rotate(var(--hand-angle)); }
  70% { transform: translate(0) rotate(0); }
  84% { transform: translateY(5px) rotate(0); }
  100% { transform: translate(0) rotate(0); }
}
@keyframes login-logo-complete { to { opacity: 1; } }
@keyframes login-hands-finish { to { opacity: 0; } }
@keyframes login-heading-rejoin {
  0% { opacity: 0; transform: translate(var(--start-x), var(--start-y)) scale(.82); filter: blur(6px); letter-spacing: .14em; }
  65% { opacity: 1; transform: translate(0) scale(1.05); filter: blur(0); letter-spacing: normal; }
  100% { opacity: 1; transform: translate(0) scale(1); filter: none; letter-spacing: normal; }
}
@keyframes login-subtitle-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes login-logo-ripple { from { opacity: .8; transform: scale(.78); } to { opacity: 0; transform: scale(1.55); } }

@media (max-width: 700px) {
  body {
    display: block;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  .auth-shell { width: min(100%, 480px); min-height: auto; margin: 0 auto; grid-template-columns: 1fr; border-radius: 19px; }
  .brand-panel { min-height: 190px; padding: 22px 24px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .panel-copy { padding: 28px 0 19px; }
  .panel-copy h1 { max-width: 310px; font-size: 27px; }
  .panel-copy p { max-width: 350px; font-size: 12px; }
  .panel-kicker { margin-bottom: 8px; font-size: 9px; }
  .panel-foot { display: none; }
  .form-panel { padding: 31px 24px 27px; }
  .form-heading { margin-bottom: 20px; }
  .form-heading h2 { font-size: 24px; }

  body.register-page { padding: max(24px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); background: #fff; }
  .register-page .auth-shell { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .register-page .brand-panel { min-height: 0; align-items: center; padding: 0 0 28px; background: none; }
  .register-page .brand-panel::before, .register-page .brand-panel::after,
  .register-page .panel-copy, .register-page .panel-foot,
  .register-page .form-heading p, .register-page .auth-back,
  .register-page [data-email], .register-page .google-account-note { display: none; }
  .register-page .brand { flex-direction: column; gap: 5px; }
  .register-page .brand-logo { width: 126px; filter: none; }
  .register-page .form-panel { padding: 0; }
  .register-page .form-content { max-width: 380px; }
  .register-page .form-heading { margin-bottom: 24px; text-align: center; }
  .register-page .form-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.9px; }
  .register-page [data-auth-form][hidden] { display: block !important; }
  .register-page [data-auth-choices][hidden] { display: grid !important; }
  .register-page .field { gap: 7px; margin-bottom: 16px; }
  .register-page .field input { height: 50px; border-color: #dce8e9; border-radius: 12px; background: #f7fafa; font-size: 16px; }
  .register-page .terms { gap: 10px; font-size: 11px; line-height: 1.65; }
  .register-page .terms input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; }
  .register-page .submit-btn { min-height: 51px; border-radius: 12px; background: #0798a9; font-size: 14px; box-shadow: 0 6px 16px rgba(7, 152, 169, .16); }
  .register-page .submit-btn:hover { background: var(--cyan-dark); }
  .register-page .register-divider { display: flex; align-items: center; gap: 14px; margin: 23px 0; color: #7a9095; font-size: 11px; }
  .register-page .register-divider::before, .register-page .register-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .register-page .auth-choices { gap: 14px; }
  .register-page [data-google] { min-height: 54px; border-color: #d6e5e7; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(27, 74, 81, .05); font-size: 14px; }
  .register-page .google-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .register-page .google-terms { margin: 0; }
  .register-page .register-switch { display: block; margin-top: 24px; font-size: 12px; }
}

.verification-icon { display: none; }
@media (max-width: 700px) {
  body.verification-page { padding: max(24px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); background: #fff; }
  .verification-page .auth-shell { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .verification-page .brand-panel { min-height: 0; align-items: center; padding: 0 0 28px; background: none; }
  .verification-page .brand-panel::before, .verification-page .brand-panel::after,
  .verification-page .panel-copy { display: none; }
  .verification-page .brand { flex-direction: column; gap: 5px; }
  .verification-page .brand-logo { width: 126px; filter: none; }
  .verification-page .form-panel { padding: 0; }
  .verification-page .form-content { max-width: 380px; text-align: center; }
  .verification-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 20px auto 24px; border: 1px solid #d5f2f4; border-radius: 24px; background: var(--cyan-light); color: var(--cyan-dark); }
  .verification-icon svg { width: 32px; height: 32px; }
  .verification-title { margin: 0; font: 800 26px Manrope, sans-serif; letter-spacing: -.9px; }
  .verification-description { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
  .verification-page .form-status { margin-top: 20px; overflow-wrap: anywhere; }
  .verification-page .submit-btn { min-height: 51px; margin-top: 24px; border-radius: 12px; background: #0798a9; font-size: 14px; box-shadow: 0 6px 16px rgba(7, 152, 169, .16); }
  .verification-page .submit-btn:hover { background: var(--cyan-dark); }
  .verification-page .form-switch { margin: 14px 0 0; }
  .verification-page .auth-back { min-height: 44px; margin: 0; padding: 10px 16px; font-size: 13px; }
  .verification-page #verification-resend { width: 100%; min-height: 50px; border: 1px solid #d6e5e7; border-radius: 12px; background: #fff; font-size: 14px; }
  .verification-page #verification-resend:hover:not(:disabled) { border-color: var(--cyan); background: #f3fbfb; }
  .verification-page .auth-back:disabled { opacity: .7; cursor: wait; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .login-success-animation { opacity: 1; animation: none; }
  .login-success-logo { animation: none; }
  .login-hand { display: none; animation: none; }
  .login-logo-complete { opacity: 1; animation: none; }
  .login-success-logo::after { animation: none; display: none; }
  .login-success-content h2 span, .login-success-content p { opacity: 1; animation: none; filter: none; transform: none; letter-spacing: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .marketplace-backdrop::before { animation: none; transform: translateY(-160px); }
  .marketplace-motion { display: none; }
}
