
.auth {
  min-height: auto;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  font-family: var(--ff-display);
  padding-top: 40px;
}

.auth__container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}


 .auth__container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;

 }

  
 .auth__input--code {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  font-family: var(--ff-display);
  letter-spacing: 16px;
  padding-left: 20px;
}


.auth__tos-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: none;
}
.auth__tos-box::-webkit-scrollbar { display: none; }
.auth__tos-content {
  padding: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.auth__tos-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin: 16px 0 8px;
}
.auth__tos-content h3:first-child { margin-top: 0; }
.auth__tos-content strong { color: rgba(255,255,255,0.7); }


.auth__name-row {
  display: flex;
  gap: 8px;
}

.auth__name-row .auth__input {
  flex: 1;
}

.auth__notice--warn {
  background: rgba(245, 166, 35, 0.06);
  border-color: rgba(245, 166, 35, 0.12);
  margin-bottom: 16px;
}

.auth__notice--warn i {
  color: #f5a623;
}

.auth__notice--warn strong {
  color: #f5a623;
}

.auth__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  position: relative;
}

.auth__back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.auth__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #000;
}

.auth__brand-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.auth__brand-text em { font-style: normal; color: var(--c-accent); }
.auth__spacer { width: 40px; flex-shrink: 0; }

.auth__tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 4px;
}

.auth__tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: 0.2s;
}

.auth__tab.is-active { background: rgba(255,255,255,0.1); color: #fff; }

.auth__progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.auth__progress-bar {
  height: 100%;
  width: 25%;
  background: var(--c-accent);
  border-radius: 999px;
  transition: 0.3s;
}

.auth__step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: stepIn 0.25s ease;
}

.auth__step--hidden { display: none; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth__title { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; line-height: 1.2; }
.auth__sub { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin: 0; }

.auth__field { display: flex; flex-direction: column; gap: 6px; }

.auth__field label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.auth__input {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}

.auth__input:focus { border-color: var(--c-accent); }
.auth__input::placeholder { color: rgba(255,255,255,0.25); }

.auth__handle-wrap { display: flex; }
.auth__handle-at {
  display: flex; align-items: center; padding: 0 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-right: none; border-radius: 12px 0 0 12px;
  color: rgba(255,255,255,0.5); font-size: 15px;
}
.auth__input--handle { border-radius: 0 12px 12px 0; }

.auth__location-wrap { position: relative; }
.auth__location-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.35); font-size: 14px; pointer-events: none;
}
.auth__input--location { padding-left: 38px; }

.auth__phone-wrap { display: flex; gap: 8px; }
.auth__country-code {
  width: 110px; padding: 14px 8px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-family: inherit; font-size: 13px; outline: none; cursor: pointer;
}
.auth__country-code:focus { border-color: var(--c-accent); }
.auth__country-code option { background: #1a1a1a; color: #fff; }
.auth__input--phone { flex: 1; }

.auth__textarea {
  padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-family: inherit; font-size: 15px; outline: none; resize: none;
}
.auth__textarea:focus { border-color: var(--c-accent); }

.auth__hint { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.4; }
.auth__char-count { font-size: 11px; color: rgba(255,255,255,0.25); text-align: right; }

.auth__error {     font-size: 12px;
    color: #ef4444;
    opacity: 0;
    transition: 0.2s;}
.auth__error.is-visible { opacity: 1; }

.auth__divider {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.3); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px;
}
.auth__divider::before, .auth__divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.08);
}

.auth__google-btn {
  width: 100%; padding: 14px; border-radius: 12px;
  background: #fff; color: #000; font-weight: 700;
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 15px; transition: 0.2s;
}
.auth__google-btn:hover { transform: translateY(-1px); }

.auth__roles { display: flex; flex-direction: column; gap: 10px; }
.auth__role {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); cursor: pointer;
  color: #fff; font-family: inherit; text-align: left; transition: 0.2s;
}
.auth__role.is-selected { border-color: var(--c-accent); background: rgba(168,85,247,0.1); }
.auth__role div { display: flex; flex-direction: column; gap: 4px; }
.auth__role i { font-size: 22px; color: var(--c-accent); margin-top: 2px; }
.auth__role strong { font-size: 16px; font-weight: 600; }
.auth__role span { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.3; }

.auth__media { display: flex; gap: 20px; margin-bottom: 8px; flex-direction: column;}
.auth__avatar-pick, .auth__header-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }

.auth__avatar-preview {
  width: 96px; height: 96px; border-radius: 1rem;
  background: rgba(255,255,255,0.04); border: 2px dashed rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; overflow: hidden; transition: 0.2s;
}
.auth__avatar-preview i { font-size: 32px; color: rgba(255,255,255,0.2); }
.auth__avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.auth__header-preview {
  width: 160px; height: 90px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 2px dashed rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; overflow: hidden; transition: 0.2s;
}
.auth__header-preview i { font-size: 24px; color: rgba(255,255,255,0.2); }
.auth__header-preview img { width: 100%; height: 100%; object-fit: cover; }

.auth__avatar-preview:hover, .auth__header-preview:hover { border-color: var(--c-accent); }
.auth__avatar-pick span, .auth__header-pick span { font-size: 12px;}
.auth__media-hint { font-size: 10px; color: rgba(255,255,255,0.25); }

.auth__file-pick {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 2px dashed rgba(255,255,255,0.12); cursor: pointer;
}
.auth__file-preview { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.5); font-size: 14px; }
.auth__file-preview i { font-size: 20px; color: var(--c-accent); }
.auth__file-name { font-size: 12px; color: rgba(255,255,255,0.35); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth__actions { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.auth__btn {
  padding: 16px; border-radius: 14px; font-weight: 700; border: none;
  cursor: pointer; font-family: inherit; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s;
}
.auth__btn--primary { background: var(--c-accent); color: #000; }
.auth__btn--primary:active { transform: scale(0.98); }
.auth__btn--primary:disabled { opacity: 0.5; }
.auth__btn--full { width: 100%; }
.auth__step-indicator { font-size: 12px; color: rgba(255,255,255,0.3); white-space: nowrap; }

@media (min-width: 480px) {
  .auth {
    min-height: 100vh;
    align-items: center;
    padding-top: 24px;
  }
  .auth__container { padding-top: 40px; }
}
.auth__notice-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth__notice-content strong {
  font-size: 12px;
  color: var(--c-accent);
  font-weight: 700;
}

.auth__notice-content span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  display: block;
}


.auth__notice--warn .auth__notice-content strong {
  color: #f5a623;
}
.auth__container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding: 0 4px; 
    box-sizing: border-box; 
}

.auth__input {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
  box-sizing: border-box; 
  width: 100%; 
}

.auth__name-row {
  display: flex;
  gap: 8px;
}

.auth__name-row .auth__input {
  flex: 1;
  min-width: 0; 
}

.auth__handle-wrap {
  display: flex;
  width: 100%; 
}

.auth__input--handle {
  border-radius: 0 12px 12px 0;
  flex: 1; 
  min-width: 0; 
}


.auth * {
  box-sizing: border-box;
}
.auth__link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--ff-body);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  border-radius: 14px;
}

.auth__link-btn:hover {
  color: var(--c-accent);
}
.auth__location-selects {
  display: flex;
  gap: 8px;
}
.auth__select {
  flex: 1;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.auth__select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.auth__select option {
  background: #111;
  color: #fff;
}
.auth__location-selects {
  display: flex;
  gap: 8px;
}
.auth__select {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
#countrySelect {
  flex: 1;
  min-width: 0;
}
#citySelect {
  flex: 2;
  min-width: 0;
}
.auth__select:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.auth__select option {
  background: #111;
  color: #fff;
}