/* Register Page */
:root {
  --p: #57d2a2;
  --s: #033e2f;
  --dark: #102a35;
  --bg: #f5f8fa;
  --w: #fff;
  --t: #263746;
  --m: #718096;
  --err: #d9453d;
  --r: 16px;
  --sh: 0 10px 30px rgba(16, 42, 53, 0.08);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--t);
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: var(--s);
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
}
/* left panel */
.side {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 48px clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  gap: 40px;
  background:
    radial-gradient(600px 320px at 85% 0, rgba(32, 166, 138, 0.4), transparent),
    linear-gradient(145deg, #102a35, #0d3a3f);
}
.side::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 166, 138, 0.3), transparent 65%);
  filter: blur(30px);
  bottom: -180px;
  left: -140px;
  animation: drift 14s ease-in-out infinite alternate;
}
.side > * {
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}
.logo:hover {
  text-decoration: none;
}
.logo i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--p), var(--s));
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.95rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7fe0cb;
  text-transform: uppercase;
}
.side h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.side p {
  color: #b9ccd4;
  max-width: 440px;
}
.pts {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.pts li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}
.pts li:before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
    center/14px no-repeat;
}
.mini {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(6px);
  max-width: 440px;
  animation: fl 6s ease-in-out infinite;
}
.mini .k {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini .k div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.7rem;
  color: #b9ccd4;
  border-left: 3px solid var(--p);
}
.mini .k div:nth-child(2) {
  border-color: #f0a63c;
}
.mini .k div:nth-child(3) {
  border-color: #e5534b;
}
.mini strong {
  display: block;
  color: #fff;
  font-size: 1.3rem;
}
.mini .b {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  margin-top: 12px;
}
.mini .b i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(var(--p), var(--s));
  transform-origin: bottom;
  animation: grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.note {
  font-size: 0.78rem;
  color: #8aa3ad;
  margin-top: 8px;
}
/* form */
.pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px clamp(20px, 5vw, 72px);
  background: var(--bg);
}
.box {
  width: min(610px, 100%);
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(16, 42, 53, 0.08);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.box h1 {
  font-size: 1.65rem;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sub {
  color: var(--m);
  font-size: 0.95rem;
  margin: 6px 0 24px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.f {
  margin-bottom: 16px;
}
label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
label small {
  font-weight: 500;
  color: var(--m);
}
.in {
  position: relative;
}
input,
select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--t);
  padding: 7px 14px;
  border: 1.5px solid #d6e0e7;
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
}
select {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 12px center/18px no-repeat;
  padding-right: 40px;
}
input::placeholder {
  color: #a0aec0;
}
input:focus,
select:focus {
  outline: 0;
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(32, 166, 138, 0.15);
}
.f.bad input,
.f.bad select {
  border-color: var(--err);
}
.f.bad input:focus {
  box-shadow: 0 0 0 4px rgba(217, 69, 61, 0.12);
}
.msg {
  display: none;
  color: var(--err);
  font-size: 0.78rem;
  margin-top: 5px;
}
.f.bad .msg {
  display: block;
  animation: shake 0.35s;
}
.msg.server-error {
  display: block;
}
.eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--m);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.eye:hover {
  color: var(--s);
}
.eye svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.in input[type="password"],
.in input.pw {
  padding-right: 46px;
}
.meter {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.meter i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e3eaef;
  transition: background 0.3s;
}
.hint {
  font-size: 0.76rem;
  color: var(--m);
  margin-top: 5px;
}
.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--t);
  margin-bottom: 6px;
}
.chk input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  padding: 0;
  appearance: auto;
  accent-color: var(--p);
}
.auth-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.auth-options > a {
  font-size: 0.86rem;
  white-space: nowrap;
}
.qr-link {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid #d6e0e7;
  border-radius: 9px;
  font-size: 0.82rem;
}
.alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f1b9b5;
  border-radius: 10px;
  background: #fff3f2;
  color: #a52c25;
  font-size: 0.88rem;
}
.alert-success {
  border-color: #b7e5d4;
  background: #effaf5;
  color: var(--s);
}
.btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--p);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(32, 166, 138, 0.3);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--s);
  transform: translateY(-2px);
}
.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s;
}
.btn:hover::after {
  left: 130%;
}
.foot {
  text-align: center;
  font-size: 0.9rem;
  color: var(--m);
  margin-top: 20px;
}
.ok {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.ok.show {
  display: block;
  animation: rise 0.6s both;
}
.ok .tick {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(32, 166, 138, 0.12);
  color: var(--s);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.ok .tick svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.6s 0.3s forwards;
}
.back {
  display: inline-block;
  font-size: 0.85rem;
  color: #b9ccd4;
  margin-bottom: 2px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drift {
  to {
    transform: translate(90px, -80px) scale(1.2);
  }
}
@keyframes fl {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  .side {
    padding: 28px 24px;
    gap: 22px;
  }
  .mini,
  .pts {
    display: none;
  }
  .side h2 {
    font-size: 1.6rem;
  }
  .pane {
    padding: 28px 16px 48px;
    margin-top: -1px;
  }
}
@media (max-width: 520px) {
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-options {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .ok .tick svg {
    stroke-dashoffset: 0;
  }
}
form#reg button#go {
  text-align: center;
  display: flex;
  width: 100%;
  justify-content: center;
}
a.logo img {
    max-width: 170px;
}
.logo img {
    background: #fff;
    padding: 7px;
    border-radius: 10px;
}