:root {
  --k2-purple: #6c63ff;
  --k2-purple-dark: #5148e5;
  --k2-purple-deep: #2f286e;
  --k2-purple-soft: #f2f0ff;
  --k2-ink: #17182a;
  --k2-muted: #6b6d7d;
  --k2-border: #8f92a0;
  --k2-surface: #ffffff;
  --k2-danger: #c83f4d;
  --k2-success: #248a62;
  --k2-focus: rgba(108, 99, 255, .18);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.k2-auth-page {
  margin: 0;
  min-height: 100vh;
  color: var(--k2-ink);
  background: #f7f7fb;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }

a { color: var(--k2-purple-dark); text-decoration: none; }
a:hover, a:focus { color: #443bbf; text-decoration: none; }

.k2-auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(460px, .92fr);
}

.k2-auth-showcase {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 42px clamp(44px, 6vw, 94px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.14), transparent 24%),
    radial-gradient(circle at 8% 88%, rgba(146,137,255,.24), transparent 30%),
    linear-gradient(145deg, #302878 0%, #5248d8 50%, #6c63ff 100%);
}

.k2-auth-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 86%);
  pointer-events: none;
}

.k2-auth-showcase__media {
  position: absolute;
  inset: 0;
  opacity: .16;
  mix-blend-mode: luminosity;
}

.k2-auth-showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(38,31,99,.78), rgba(108,99,255,.92));
}

.k2-auth-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k2-auth-showcase__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.k2-auth-showcase__glow--one {
  width: 340px;
  height: 340px;
  top: -150px;
  right: -90px;
  background: color-mix(in srgb, var(--legacy-auth-accent) 55%, transparent);
  opacity: .22;
}

.k2-auth-showcase__glow--two {
  width: 240px;
  height: 240px;
  bottom: -100px;
  left: -80px;
  background: rgba(255,255,255,.09);
}

.k2-auth-showcase__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.k2-auth-site-brand {
  position: absolute;
  z-index: 5;
  top: 42px;
  left: clamp(44px, 6vw, 94px);
  max-width: min(320px, calc(54vw - 88px));
}

.k2-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
}

.k2-auth-brand:hover,
.k2-auth-brand:focus { color: #fff; }

.k2-auth-site-brand__custom {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  max-width: 100%;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 32px rgba(20,17,74,.24);
  overflow: hidden;
}

.k2-auth-site-brand__custom img,
.k2-auth-site-brand__custom svg {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 44px;
  object-fit: contain;
}

.k2-auth-site-brand__custom > * { max-width: 100%; }
.k2-auth-site-brand__custom { overflow-wrap: anywhere; }

.k2-auth-brand__mark {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b52e9;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 17, 74, .22);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.k2-auth-brand__name {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
  letter-spacing: -.35px;
}

.k2-auth-showcase__copy {
  max-width: 630px;
  margin-top: clamp(70px, 9vh, 116px);
}

.k2-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.k2-auth-showcase h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4vw, 61px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -2px;
}

.k2-auth-showcase__copy > p {
  max-width: 585px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.7;
}

.k2-auth-preview {
  width: min(100%, 610px);
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 30px 65px rgba(31,25,91,.28);
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.k2-auth-preview__topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.k2-auth-preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}

.k2-auth-preview__label {
  margin-left: auto;
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 700;
}

.k2-auth-preview__body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: end;
  padding: 27px 28px 25px;
}

.k2-auth-preview__metric span,
.k2-auth-preview__metric small { display: block; }

.k2-auth-preview__metric span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.k2-auth-preview__metric strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 34px;
  line-height: 1.2;
}

.k2-auth-preview__metric small { color: #c8ffd9; font-weight: 700; }
.k2-auth-preview__metric small i { margin-right: 4px; }

.k2-auth-preview__chart {
  height: 92px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 0 5px;
}

.k2-auth-preview__chart span {
  flex: 1;
  min-width: 10px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(to top, rgba(255,255,255,.38), rgba(255,255,255,.88));
}

.k2-auth-preview__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.13);
}

.k2-auth-preview__footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 14px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
}

.k2-auth-preview__footer span + span { border-left: 1px solid rgba(255,255,255,.13); }

.k2-auth-showcase__security {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 700;
}

.k2-auth-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px clamp(34px, 5vw, 78px);
  background:
    radial-gradient(circle at 90% 8%, rgba(108,99,255,.08), transparent 24%),
    #fbfbfe;
}

.k2-auth-main__inner { width: 100%; max-width: 470px; }

.k2-auth-card {
  width: 100%;
  padding: 0;
}

.k2-auth-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 28px;
}

.k2-auth-card__icon {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--k2-purple);
  background: var(--k2-purple-soft);
  font-size: 17px;
}

.k2-auth-card__heading > div { min-width: 0; }

.k2-auth-card__heading h2 {
  margin: 0;
  color: var(--k2-ink);
  font-size: 27px;
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: -.55px;
}

.k2-auth-card__heading p {
  margin: 6px 0 0;
  color: var(--k2-muted);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.k2-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.5;
}

.k2-auth-alert i { margin-top: 2px; }
.k2-auth-alert span { min-width: 0; overflow-wrap: anywhere; }
.k2-auth-alert--danger { color: #95313c; background: #fff5f6; border-color: #f0cdd2; }
.k2-auth-alert--success { color: #166d4b; background: #f0fbf6; border-color: #c6ead9; }
.k2-auth-alert--info { color: #3e3a87; background: #f5f4ff; border-color: #dcd8ff; }

.k2-auth-field { margin-bottom: 20px; }

.k2-auth-field__top {
  min-height: 24px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.k2-auth-field label,
.k2-auth-field__label {
  margin: 0;
  color: #343648;
  font-size: 13px;
  font-weight: 800;
}

.k2-auth-field__link { font-size: 13px; font-weight: 800; }

.k2-auth-control {
  position: relative;
}

.k2-auth-control__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #9a9cac;
  pointer-events: none;
}

.k2-auth-control .form-control {
  width: 100%;
  height: 50px;
  padding: 11px 48px 11px 43px;
  border: 1px solid var(--k2-border);
  border-radius: 12px;
  background: var(--k2-surface);
  color: var(--k2-ink);
  box-shadow: 0 1px 2px rgba(25, 27, 53, .025);
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.k2-auth-control .form-control::placeholder { color: #717486; opacity: 1; }

.k2-auth-control .form-control:hover { border-color: #737687; }

.k2-auth-control .form-control:focus {
  outline: 0;
  border-color: var(--k2-purple);
  box-shadow: 0 0 0 4px var(--k2-focus);
}

.k2-auth-field.has-error .form-control {
  border-color: var(--k2-danger);
  box-shadow: 0 0 0 4px rgba(200,63,77,.08);
}

.k2-auth-field__error,
.k2-auth-field__hint {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.k2-auth-field__error {
  color: var(--k2-danger);
  font-weight: 700;
}

.k2-auth-field__hint {
  color: #6f7284;
  font-weight: 600;
}

.k2-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  color: #777a8c;
  background: transparent;
  cursor: pointer;
}


.k2-auth-password-toggle:hover { color: var(--k2-purple); background: var(--k2-purple-soft); }
.k2-auth-password-toggle:focus { outline: 0; box-shadow: 0 0 0 3px var(--k2-focus); }

.k2-auth-options {
  margin: 2px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.k2-auth-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #535567;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.k2-auth-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #8f92a0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.k2-auth-check input:checked {
  border-color: var(--k2-purple);
  background-color: var(--k2-purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M3.5 8.5 6.5 11.5 12.5 4.8'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}
.k2-auth-check input:focus { outline: 0; box-shadow: 0 0 0 4px var(--k2-focus); }

.k2-auth-submit {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #665cf8 0%, #5b4cf0 100%);
  box-shadow: 0 12px 25px rgba(92, 80, 235, .24);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.k2-auth-submit:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 15px 29px rgba(92,80,235,.3); }
.k2-auth-submit:focus { color: #fff; outline: 0; box-shadow: 0 0 0 4px var(--k2-focus), 0 12px 25px rgba(92,80,235,.24); }
.k2-auth-submit:active { transform: translateY(0); }
.k2-auth-submit[disabled] { opacity: .74; cursor: wait; transform: none; }

.k2-auth-submit__spinner { display: none; }
.k2-auth-submit.is-loading .k2-auth-submit__spinner { display: inline-block; }

.k2-auth-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid var(--k2-border);
  border-radius: 12px;
  color: #4c4e61;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.k2-auth-secondary:hover { color: var(--k2-purple); border-color: #cbc6ff; background: #faf9ff; }
.k2-auth-secondary:focus { outline: 0; box-shadow: 0 0 0 4px var(--k2-focus); }

.k2-auth-back {
  margin: 23px 0 0;
  text-align: center;
  color: var(--k2-muted);
  font-size: 13px;
  font-weight: 700;
}
.k2-auth-back a { font-weight: 850; }

.k2-auth-code {
  height: 58px !important;
  padding-left: 48px !important;
  text-align: center;
  font-size: 22px !important;
  font-weight: 850;
  letter-spacing: 7px;
}
.k2-auth-code.recovery-mode { font-size: 16px !important; letter-spacing: 1px; text-transform: uppercase; }

.k2-auth-help-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.k2-auth-help-row.has-recovery-toggle { grid-template-columns: 1fr 1fr; }

.k2-auth-link-button {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--k2-purple-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.k2-auth-link-button:hover { background: var(--k2-purple-soft); }
.k2-auth-link-button:focus { outline: 0; box-shadow: 0 0 0 3px var(--k2-focus); }

.k2-auth-noscript-note {
  margin: 13px 0 0;
  color: #6f7284;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.k2-auth-control .form-control:-webkit-autofill,
.k2-auth-control .form-control:-webkit-autofill:hover,
.k2-auth-control .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--k2-ink);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out 0s;
}

.k2-auth-footer {
  margin: 30px 0 0;
  color: #6f7284;
  text-align: center;
  font-size: 12px;
}
.k2-auth-footer i { margin-right: 5px; }

@media (max-width: 1100px) {
  .k2-auth-shell { grid-template-columns: minmax(420px, .95fr) minmax(440px, 1.05fr); }
  .k2-auth-site-brand { left: 48px; max-width: 300px; }
  .k2-auth-showcase { padding-left: 48px; padding-right: 48px; }
  .k2-auth-showcase h1 { font-size: 45px; }
  .k2-auth-preview__footer span { font-size: 11px; }
}

@media (max-width: 880px) {
  .k2-auth-shell { display: block; }
  .k2-auth-showcase { display: none; }
  .k2-auth-site-brand {
    top: 34px;
    left: 24px;
    max-width: calc(100% - 48px);
  }
  .k2-auth-site-brand .k2-auth-brand { color: var(--k2-ink); }
  .k2-auth-site-brand .k2-auth-brand:hover,
  .k2-auth-site-brand .k2-auth-brand:focus { color: var(--k2-ink); }
  .k2-auth-site-brand .k2-auth-brand__mark {
    color: #fff;
    background: #665cf8;
    box-shadow: 0 11px 24px rgba(108,99,255,.25);
  }
  .k2-auth-site-brand__custom {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .k2-auth-site-brand__custom img,
  .k2-auth-site-brand__custom svg {
    max-width: 205px;
    max-height: 52px;
  }
  .k2-auth-main { min-height: 100vh; padding: 118px 24px 42px; }
  .k2-auth-main__inner { max-width: 470px; }
}

@media (max-width: 520px) {
  .k2-auth-site-brand { top: 28px; left: 20px; max-width: calc(100% - 40px); }
  .k2-auth-main { align-items: flex-start; padding: 106px 20px 34px; }
  .k2-auth-brand__mark { width: 42px; height: 42px; border-radius: 13px; }
  .k2-auth-brand__name { max-width: 220px; font-size: 20px; }
  .k2-auth-card__heading { margin-bottom: 27px; }
  .k2-auth-card__heading h2 { font-size: 25px; }
  .k2-auth-card__icon { display: none; }
  .k2-auth-options { align-items: flex-start; }
  .k2-auth-help-row,
  .k2-auth-help-row.has-recovery-toggle { grid-template-columns: 1fr; gap: 4px; }
  .k2-auth-code { letter-spacing: 5px; }
}

@media (forced-colors: active) {
  .k2-auth-check input {
    appearance: auto;
    -webkit-appearance: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .k2-auth-showcase__glow--one { background: rgba(255,255,255,.09); }
}
