/* App-level styles — KAS Design System */
@import "kas-JzjOb0V.css";

.layout-vertical-transparent .navbar {
  backdrop-filter: saturate(180%) blur(8px);
}

/* Auth views — aligned with affiliate panel styling */
.ucp-auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: #ffffff;
  color: var(--k-text-mid);
}

.ucp-auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ucp-auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(0, 40, 156, 0.08), transparent 62%);
  opacity: 1;
}

.ucp-orb {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.3;
  transform: translate3d(0, 0, 0);
  animation: orbFloat 12s ease-in-out infinite;
}

.ucp-orb--lime {
  background: radial-gradient(circle at 30% 30%, rgba(0, 40, 156, 0.18), rgba(0, 40, 156, 0));
  top: -180px;
  left: -180px;
}

.ucp-orb--blue {
  background: radial-gradient(circle at 30% 30%, rgba(0, 40, 156, 0.22), rgba(0, 40, 156, 0));
  bottom: -260px;
  right: -220px;
  animation-delay: -2.5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -14px) scale(1.03); }
}

.ucp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 40, 156, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 40, 156, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 22%, rgba(0,0,0,.9), transparent 62%);
  opacity: .45;
}

.ucp-auth-container {
  position: relative;
  z-index: 1;
  width: min(620px, 94vw);
}

.ucp-auth-header {
  text-align: center;
  margin-bottom: 16px;
  padding: 0;
}

.ucp-auth-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ucp-auth-brand-link:hover { text-decoration: none; }
.ucp-auth-logo {
  height: 36px;
  width: auto;
}

.ucp-auth-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 40, 156, 0.05);
  box-shadow: 0 4px 80px rgba(0, 35, 156, 0.1);
  padding: 32px;
  overflow: hidden;
}

.ucp-auth-card::before {
  content: none;
}

.ucp-auth-card::after {
  content: none;
}

.ucp-auth-card-header { margin-bottom: 16px; }
.ucp-auth-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--k-navy);
  margin: 0;
}
.ucp-auth-muted {
  margin: 8px 0 0;
  color: #385880;
  font-size: 14px;
  line-height: 1.45;
}

.ucp-form {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.ucp-field { position: relative; }
.ucp-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 40, 156, 0.1);
  min-height: 52px;
  padding: 18px 14px 8px;
  background: #fff;
  color: #293951;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}
.ucp-input:focus {
  outline: none;
  border-color: rgba(48, 127, 226, 0.28);
  box-shadow: 0 0 0 4px rgba(48, 127, 226, 0.12);
}

.ucp-label {
  position: absolute;
  left: 10px;
  top: -7px;
  font-size: 12px;
  color: #7297be;
  pointer-events: none;
  background: #fff;
  padding: 0 6px;
  line-height: 1.2;
  border-radius: 3px;
}

.ucp-field--password .ucp-input {
  padding-right: 48px;
}

.ucp-icon-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 40, 156, 0.08);
  background: rgba(0, 40, 156, 0.03);
  display: grid;
  place-items: center;
  color: #385880;
  transition: background .12s ease;
}
.ucp-icon-btn:hover { background: rgba(0, 40, 156, 0.08); }

.ucp-btn {
  width: 100%;
  border-radius: 8px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid transparent;
  background: rgba(0, 40, 156, 0.06);
  color: #2d435f;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .12s ease, background .12s ease, box-shadow .12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ucp-btn:hover { opacity: 0.9; text-decoration: none; }

.ucp-btn--primary {
  background: var(--k-blue);
  border-color: var(--k-blue);
  color: #fff;
}
.ucp-btn--primary:hover {
  background: #001e96;
  border-color: #001e96;
  color: #fff;
  box-shadow: 0 14px 30px rgba(13,27,75,.2);
}

.ucp-btn--ghost {
  background: rgba(0, 40, 156, 0.06);
  color: #2d435f;
}
.ucp-btn--ghost:hover {
  background: rgba(0, 40, 156, 0.1);
  color: #2d435f;
}

.ucp-auth-links {
  text-align: center;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ucp-link {
  color: var(--k-blue);
  text-decoration: none;
  font-weight: 500;
}
.ucp-link:hover { text-decoration: underline; }

.ucp-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  color: #7297be;
  font-size: 12px;
}
.ucp-divider::before,
.ucp-divider::after {
  content: "";
  height: 1px;
  background: rgba(0, 40, 156, 0.08);
}

.ucp-social { display: grid; gap: 10px; }

.ucp-alert {
  position: relative;
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid rgba(0, 40, 156, 0.14);
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 40, 156, 0.07);
}
.ucp-alert::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(0, 40, 156, 0.2);
}
.ucp-alert--success {
  border-color: rgba(22,163,74,.3);
  color: #098c40;
}
.ucp-alert--success::before {
  background: #16a34a;
}
.ucp-alert--danger {
  border-color: rgba(220,53,69,.3);
  color: var(--k-red);
}
.ucp-alert--danger::before {
  background: var(--k-red);
}

.password-toggle-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.password-toggle-btn .icon-eye-off {
  display: none;
}

.password-toggle-btn.is-visible .icon-eye {
  display: none;
}

.password-toggle-btn.is-visible .icon-eye-off {
  display: block;
}

.ucp-consents {
  border-radius: 12px;
  border: 1px solid rgba(0, 40, 156, 0.08);
  background: rgba(0, 40, 156, 0.03);
  padding: 14px;
}
.ucp-consents-title {
  margin: 0 0 10px;
  color: var(--k-navy);
  font-size: 14px;
  font-weight: 500;
}
.ucp-consents-list {
  display: grid;
  gap: 10px;
}
.ucp-consents-list > * {
  margin: 0;
}
.ucp-check-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ucp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ucp-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 40, 156, 0.22);
  background: #fff;
  margin: 1px 0 0;
  flex-shrink: 0;
  position: relative;
  transition: all .12s ease;
}
.ucp-check-input:hover {
  border-color: rgba(0, 40, 156, 0.42);
}
.ucp-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(48, 127, 226, 0.16);
}
.ucp-check-input:checked {
  background: var(--k-blue);
  border-color: var(--k-blue);
}
.ucp-check-input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ucp-check-label {
  color: #385880;
  font-size: 13px;
  line-height: 1.45;
}

.invalid-feedback {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--k-red);
  line-height: 1.35;
}
.ucp-field .is-invalid {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.ucp-field .is-invalid ~ .invalid-feedback {
  display: block;
}
.ucp-check-input.is-invalid {
  border-color: rgba(220, 38, 38, 0.7);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.ucp-check-wrap .is-invalid ~ .invalid-feedback {
  display: block;
}

/* Panel Tabler overrides (legacy) — kept minimal */

