/* User auth — minimal professional */

.uc-auth {
  --ua-bg: #000000;
  --ua-surface: #0a0a0a;
  --ua-surface-2: #050505;
  --ua-border: #1f1f1f;
  --ua-muted: #737373;
  --ua-text: #fafafa;
  --ua-accent: #d4a012;
  --ua-accent-hover: #e8b422;
  --ua-green: #22a06b;
  --ua-red: #e5484d;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ua-bg);
  color: var(--ua-text);
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
}

.uc-auth__shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 1024px) {
  .uc-auth__shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

/* Brand panel — full-bleed art with blended overlay */
.uc-auth__brand {
  display: none;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .uc-auth__brand {
    display: block;
  }
}

.uc-auth__brand-media {
  position: absolute;
  inset: 0;
}

.uc-auth__brand-media picture,
.uc-auth__brand-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.uc-auth__brand-media img {
  object-fit: cover;
  object-position: 72% 52%;
  transform: scale(1.12);
  user-select: none;
  -webkit-user-drag: none;
}

.uc-auth__brand-blend {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.94) 16%, rgba(0, 0, 0, 0.72) 32%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.08) 68%, transparent 82%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 34%, rgba(0, 0, 0, 0.05) 58%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.uc-auth__brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.75rem 3rem 2rem;
}

@media (min-width: 1280px) {
  .uc-auth__brand-content {
    padding: 3.25rem 3.75rem 2.25rem;
  }
}

.uc-auth__logo {
  display: inline-block;
  flex-shrink: 0;
}

.uc-auth__logo img {
  height: 1.875rem;
  width: auto;
}

.uc-auth__brand-statement {
  max-width: 21rem;
  margin-top: auto;
  padding-bottom: 0.5rem;
}

.uc-auth__brand-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ua-accent);
}

.uc-auth__brand-title {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ua-text);
}

.uc-auth__brand-title span {
  display: block;
}

.uc-auth__brand-lead {
  margin: 0;
  max-width: 19rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #a3a3a3;
}

.uc-auth__brand-foot {
  flex-shrink: 0;
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: #525252;
}

/* Main */
.uc-auth__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 4rem;
}

.uc-auth__main--wide .uc-auth__card {
  max-width: 40rem;
}

.uc-auth__card {
  width: 100%;
  max-width: 24rem;
}

.uc-auth__header {
  margin-bottom: 2rem;
}

.uc-auth__header-logo {
  display: inline-block;
}

.uc-auth__header-logo img {
  height: 1.75rem;
  width: auto;
}

.uc-auth__panel {
  padding: 0;
}

.uc-auth__panel--wide {
  max-width: none;
}

.uc-auth__head {
  margin-bottom: 1.75rem;
}

.uc-auth__head--left {
  text-align: left;
}

.uc-auth__head h1 {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ua-text);
}

.uc-auth__head p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ua-muted);
}

/* Alerts */
.uc-auth__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  border: 1px solid var(--ua-border);
  background: var(--ua-surface);
}

.uc-auth__alert--info {
  border-color: #333;
}

.uc-auth__alert--success {
  border-color: rgba(34, 160, 107, 0.35);
}

.uc-auth__alert--error {
  border-color: rgba(229, 72, 77, 0.35);
  color: #f3a8aa;
}

.uc-auth__alert i,
.uc-auth__alert svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.7;
}

/* Form */
.uc-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uc-auth__field {
  position: relative;
}

.uc-auth__field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a3a3a3;
}

.uc-auth__field label .required {
  color: var(--ua-red);
}

.uc-auth__input-wrap {
  position: relative;
}

.uc-auth__input-wrap > i:first-child,
.uc-auth__input-wrap > svg:first-child {
  display: none;
}

.uc-auth__input {
  display: block;
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ua-text);
  background: var(--ua-surface);
  border: 1px solid var(--ua-border);
  border-radius: 0.5rem;
  transition: border-color 0.15s;
}

.uc-auth__input--no-icon {
  padding-left: 0.875rem;
}

.uc-auth__input--captcha {
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
}

.uc-auth__input:focus {
  outline: none;
  border-color: #404040;
}

.uc-auth__input::placeholder {
  color: #525252;
}

.uc-auth__input--readonly {
  color: var(--ua-muted);
  cursor: not-allowed;
  background: var(--ua-surface-2);
}

.uc-auth__toggle-pw {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  border: none;
  background: transparent;
  color: var(--ua-muted);
  cursor: pointer;
}

.uc-auth__toggle-pw:hover {
  color: var(--ua-text);
}

.uc-auth__hint {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: var(--ua-muted);
}

.uc-auth__field-error {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #f3a8aa;
}

.uc-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.uc-auth__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ua-muted);
  cursor: pointer;
  font-size: 0.8125rem;
}

.uc-auth__checkbox input {
  width: 0.9375rem;
  height: 0.9375rem;
  accent-color: var(--ua-accent);
  cursor: pointer;
}

.uc-auth__link {
  color: var(--ua-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #404040;
  transition: text-decoration-color 0.15s;
}

.uc-auth__link:hover {
  text-decoration-color: var(--ua-accent);
}

.uc-auth__link--green {
  color: var(--ua-text);
}

/* Buttons */
.uc-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.6875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.uc-auth__btn--primary {
  background: var(--ua-accent);
  color: #0a0a0a;
}

.uc-auth__btn--primary:hover:not(:disabled) {
  background: var(--ua-accent-hover);
}

.uc-auth__btn--ghost {
  background: transparent;
  color: var(--ua-muted);
  border: 1px solid var(--ua-border);
}

.uc-auth__btn--ghost:hover:not(:disabled) {
  color: var(--ua-text);
  border-color: #404040;
}

.uc-auth__btn--text {
  width: auto;
  padding: 0.375rem 0;
  background: transparent;
  color: var(--ua-muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.uc-auth__btn--text:hover {
  color: var(--ua-text);
}

.uc-auth__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Notice */
.uc-auth__notice {
  padding: 0.75rem 0;
  border-top: 1px solid var(--ua-border);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ua-muted);
}

.uc-auth__notice h4 {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a3a3a3;
}

.uc-auth__notice p {
  margin: 0;
  font-size: 0.8125rem;
}

.uc-auth__notice--danger {
  border-top-color: rgba(229, 72, 77, 0.25);
}

.uc-auth__notice--danger h4 {
  color: #f3a8aa;
}

/* Footer */
.uc-auth__footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ua-border);
  text-align: center;
}

.uc-auth__footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ua-muted);
}

.uc-auth__footer p + p {
  margin-top: 0.5rem;
}

.uc-auth__copyright {
  margin: 0;
  font-size: 0.75rem;
  color: #525252;
}

.uc-auth__divider {
  display: none;
}

/* Register steps */
.uc-auth__steps {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--ua-border);
}

.uc-auth__step {
  flex: 1;
  padding-bottom: 0.75rem;
  text-align: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: border-color 0.15s;
}

.uc-auth__step.is-active {
  border-bottom-color: var(--ua-accent);
}

.uc-auth__step.is-done {
  border-bottom-color: var(--ua-green);
}

.uc-auth__step-dot {
  display: none;
}

.uc-auth__step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #525252;
  letter-spacing: 0.01em;
}

.uc-auth__step.is-active .uc-auth__step-label,
.uc-auth__step.is-done .uc-auth__step-label {
  color: var(--ua-text);
}

.uc-auth__step-block {
  display: none;
}

.uc-auth__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .uc-auth__grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Country combobox */
.uc-auth__select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.uc-auth__combobox {
  position: relative;
}

.uc-auth__combobox-trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: left;
  color: var(--ua-text);
  background: var(--ua-surface);
  border: 1px solid var(--ua-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.uc-auth__combobox-trigger:hover {
  border-color: #333;
}

.uc-auth__combobox.is-open .uc-auth__combobox-trigger,
.uc-auth__combobox-trigger:focus-visible {
  outline: none;
  border-color: #404040;
  box-shadow: 0 0 0 3px rgba(212, 160, 18, 0.12);
}

.uc-auth__combobox-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--ua-muted);
}

.uc-auth__combobox-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-auth__combobox-value.is-placeholder {
  color: #525252;
}

.uc-auth__combobox-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--ua-muted);
  transition: transform 0.15s;
}

.uc-auth__combobox.is-open .uc-auth__combobox-chevron {
  transform: rotate(180deg);
}

.uc-auth__combobox-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 0.625rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.uc-auth__combobox.is-open .uc-auth__combobox-panel {
  display: block;
}

.uc-auth__combobox-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--ua-border);
  color: var(--ua-muted);
}

.uc-auth__combobox-search {
  flex: 1;
  min-width: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--ua-text);
  background: transparent;
  border: none;
  outline: none;
}

.uc-auth__combobox-search::placeholder {
  color: #525252;
}

.uc-auth__combobox-list {
  max-height: 14rem;
  margin: 0;
  padding: 0.375rem;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.uc-auth__combobox-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  text-align: left;
  color: #d4d4d4;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.uc-auth__combobox-option:hover,
.uc-auth__combobox-option:focus-visible {
  outline: none;
  background: #1a1a1a;
  color: var(--ua-text);
}

.uc-auth__combobox-option.is-selected {
  background: rgba(212, 160, 18, 0.12);
  color: var(--ua-accent);
}

.uc-auth__combobox-empty {
  padding: 0.75rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--ua-muted);
  text-align: center;
}

.uc-auth__captcha-box {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  background: var(--ua-surface);
  border: 1px solid var(--ua-border);
}

.uc-auth__captcha-code {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--ua-text);
}

.uc-auth__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uc-auth__list li {
  font-size: 0.75rem;
  color: var(--ua-muted);
  margin-bottom: 0.25rem;
}

.uc-auth__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ua-border);
}

.uc-auth__nav-progress {
  font-size: 0.75rem;
  color: var(--ua-muted);
}

.uc-auth__nav .uc-auth__btn--primary {
  width: auto;
}

/* Verify email */
.uc-auth__steps-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.uc-auth__steps-list li {
  font-size: 0.8125rem;
  color: var(--ua-muted);
  padding: 0.25rem 0;
}

.uc-auth__steps-list .num {
  display: none;
}

/* Locked account */
.uc-auth__contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (min-width: 480px) {
  .uc-auth__contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.uc-auth__contact-card {
  padding: 0.875rem;
  border-radius: 0.5rem;
  background: var(--ua-surface);
  border: 1px solid var(--ua-border);
  text-align: left;
}

.uc-auth__contact-card strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 0.25rem;
}

.uc-auth__contact-card a,
.uc-auth__contact-card span {
  font-size: 0.8125rem;
  color: var(--ua-muted);
}

.uc-auth__otp-input {
  text-align: center;
  letter-spacing: 0.25em;
  font-family: ui-monospace, monospace;
  font-size: 1rem;
}

/* Legacy — hide unused decorative elements */
.uc-auth__icon-wrap,
.uc-auth__stats,
.uc-auth__trust,
.uc-auth__benefits,
.uc-auth__features {
  display: none !important;
}
