:root{
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --input-bg: #f3f4f6;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: #fff;
}

.brand-logo {
    width: 120px;
}

.auth-shell{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}

.brand-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #b794f4;
  box-shadow: 0 0 0 6px rgba(183, 148, 244, 0.18);
}

.auth-card{
  width: min(420px, 100%);
  margin: auto;
}

.auth-left{
  background: #fff;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
}

.auth-title{
  font-family: Sora, sans-serif;
  font-size: 34px;
  margin: 0 0 15px 0;
  letter-spacing: -0.2px;
}

.auth-subtitle{
  margin: 5 0 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-form{ margin-top: 15px; }

.field{ margin-bottom: 14px; }
.label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #374151;
}

.input{
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.input:focus{
  background: #fff;
  border-color: rgba(183, 148, 244, 0.9);
  box-shadow: 0 0 0 5px rgba(183, 148, 244, 0.22);
}

.btn{
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  transition: transform 0.06s ease, filter 0.15s ease;
}

.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.auth-foot{
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.link{
  color: #111827;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alert{
  background: #fff5f7;
  border: 1px solid #fecdd3;
  color: #9f1239;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}

.field-error{
  margin-top: 8px;
  color: #b91c1c;
  font-size: 12px;
}

.auth-right{
  background: radial-gradient(900px 500px at 60% 40%,
      rgba(255, 205, 220, 0.95) 0%,
      rgba(206, 178, 255, 0.92) 45%,
      rgba(255, 214, 165, 0.70) 100%);
}

@media (max-width: 900px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-right{ display: none; }
  .auth-card{ margin-top: 70px; }
}

/* =========================================================
   SELF REGISTRATION SUCCESS
   ========================================================= */

.success-card {
  max-width: 560px;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  margin-bottom: 24px;

  border: 1px solid rgba(82, 145, 109, 0.14);
  border-radius: 18px;

  background: rgba(218, 242, 226, 0.75);

  color: #34704d;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.success-message {
  max-width: 520px;
}

.success-information {
  margin-top: 26px;
  padding: 18px 20px;

  border: 1px solid rgba(113, 91, 157, 0.12);
  border-radius: 16px;

  background: rgba(245, 242, 251, 0.75);

  color: #5e5a68;
  font-size: 13px;
  line-height: 1.65;
}

.success-right {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px;
}

.success-decoration {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: rgba(48, 39, 66, 0.74);
  text-align: center;
}

.success-decoration-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 110px;
  height: 110px;
  margin-bottom: 22px;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 32px;

  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 28px 70px rgba(74, 50, 106, 0.12);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.success-decoration-mark svg {
  width: 54px;
  height: 54px;
}

.success-decoration p {
  margin: 0;

  font-size: 18px;
  font-weight: 650;
}



/* =========================================================
   SELF REGISTRATION
   ========================================================= */

.registration-card {
  width: 100%;
  max-width: 620px;
}

.registration-heading {
  margin-bottom: 30px;
}

.registration-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 5px 12px;

  border: 1px solid rgba(133, 105, 205, 0.16);
  border-radius: 999px;

  background: rgba(202, 183, 255, 0.18);

  color: #69558f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.registration-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.registration-name-grid .field,
.registration-form .field {
  margin: 0;
}

.registration-button {
  margin-top: 6px;
}

.registration-privacy {
  max-width: 420px;
  margin: -2px auto 0;

  color: #7a7f8c;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}


/* Errors */

.field-error {
  margin-top: 7px;

  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
}

.field-error ul,
.alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.has-error .input {
  border-color: rgba(180, 35, 24, 0.5);
  background: #fffafa;
}

.has-error .input:focus {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}


/* Right panel */

.registration-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 64px;
  overflow: hidden;
}

.registration-right::before,
.registration-right::after {
  content: "";
  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.28;
  pointer-events: none;
}

.registration-right::before {
  top: -160px;
  right: -100px;

  background: rgba(255, 255, 255, 0.75);
}

.registration-right::after {
  bottom: -200px;
  left: -150px;

  background: rgba(255, 224, 181, 0.8);
}

.registration-right-content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 500px;
}

.registration-process-card {
  padding: 40px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 28px 70px rgba(72, 50, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.registration-process-label {
  display: block;
  margin-bottom: 10px;

  color: rgba(37, 31, 52, 0.62);
  font-size: 13px;
  font-weight: 600;
}

.registration-process-title {
  margin: 0;

  color: #1f2130;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.registration-divider {
  width: 100%;
  height: 1px;
  margin: 30px 0;

  background: rgba(61, 47, 87, 0.12);
}

.registration-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.registration-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.registration-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(99, 74, 153, 0.12);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.54);

  color: #66508f;
  font-size: 13px;
  font-weight: 750;
}

.registration-step strong {
  display: block;
  margin-top: 1px;

  color: #272431;
  font-size: 14px;
  line-height: 1.4;
}

.registration-step p {
  margin: 4px 0 0;

  color: rgba(39, 36, 49, 0.67);
  font-size: 13px;
  line-height: 1.55;
}


/* Responsive */

@media (max-width: 1100px) {
  .registration-right {
    padding: 40px;
  }

  .registration-process-card {
    padding: 32px;
  }
}

@media (max-width: 820px) {
  .registration-name-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SELF REGISTRATION LANGUAGE SWITCHER
   ========================================================= */

.registration-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

@media (max-width: 520px) {
  .auth-left {
    padding: 22px 20px;
  }

  .registration-topbar {
    align-items: flex-start;
  }

  .registration-language-option {
    width: 34px;
    padding-inline: 8px;
  }

  .registration-language-option span {
    display: none;
  }
}

/* =========================================================
   SELF REGISTRATION LANGUAGE DROPDOWN
   ========================================================= */

.registration-topbar {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  width: 100%;
}

.registration-language-dropdown {
  position: relative;
  z-index: 20;
}

.registration-language-trigger {
  display: inline-grid;
  grid-template-columns: 22px minmax(0, auto) 16px;
  align-items: center;
  gap: 8px;

  min-height: 42px;
  padding: 7px 12px;

  border: 1px solid rgba(83, 67, 112, 0.14);
  border-radius: 999px;

  background: #ffffff;
  box-shadow:
    0 4px 14px rgba(42, 32, 64, 0.06),
    0 1px 2px rgba(42, 32, 64, 0.04);

  color: #302942;

  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.registration-language-trigger:hover {
  border-color: rgba(105, 75, 164, 0.22);

  box-shadow:
    0 7px 20px rgba(42, 32, 64, 0.09),
    0 1px 2px rgba(42, 32, 64, 0.04);
}

.registration-language-trigger:focus-visible {
  outline: 3px solid rgba(115, 75, 190, 0.17);
  outline-offset: 2px;
}

.registration-language-trigger[aria-expanded="true"] {
  border-color: rgba(105, 75, 164, 0.25);
}

.registration-language-current-flag,
.registration-language-option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.registration-language-flag {
  display: block;

  width: 20px;
  height: 14px;

  object-fit: cover;
  border-radius: 2px;

  box-shadow: 0 0 0 1px rgba(48, 41, 66, 0.13);
}

.registration-language-current-label {
  white-space: nowrap;
}

.registration-language-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #887f97;

  transition: transform 150ms ease;
}

.registration-language-chevron svg {
  width: 15px;
  height: 15px;
}

.registration-language-trigger[aria-expanded="true"]
.registration-language-chevron {
  transform: rotate(180deg);
}


/* Dropdown card */

.registration-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;

  width: 240px;
  padding: 9px;

  border: 1px solid rgba(83, 67, 112, 0.1);
  border-radius: 16px;

  background: #ffffff;
  box-shadow:
    0 18px 45px rgba(49, 37, 75, 0.14),
    0 3px 10px rgba(49, 37, 75, 0.06);
}

.registration-language-menu[hidden] {
  display: none;
}

.registration-language-menu-label {
  padding: 7px 10px 9px;

  color: #888096;

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}


/* Language options */

.registration-language-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;

  width: 100%;
  min-height: 54px;
  padding: 8px 10px;

  border: 0;
  border-radius: 11px;

  background: transparent;
  color: #302942;

  font: inherit;
  text-align: left;

  cursor: pointer;

  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.registration-language-option:hover {
  background: rgba(113, 72, 190, 0.07);
}

.registration-language-option.is-active {
  background: rgba(115, 72, 200, 0.11);
  color: #6634c5;
}

.registration-language-option-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  min-width: 0;
}

.registration-language-option-name {
  color: inherit;

  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.registration-language-option-description {
  color: #8b8498;

  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.registration-language-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  border-radius: 50%;

  background: #ff6f61;
  color: #ffffff;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}


/* Mobile */

@media (max-width: 520px) {
  .auth-left {
    padding: 22px 20px;
  }

  .registration-language-trigger {
    grid-template-columns: 22px 14px;
  }

  .registration-language-current-label {
    display: none;
  }

  .registration-language-menu {
    width: min(240px, calc(100vw - 40px));
  }
}