html {
  background: #17141f;
}

body.kody-login-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(102, 34, 207, 0.42), rgba(102, 34, 207, 0) 34%),
    linear-gradient(135deg, #17141f 0%, #171717 58%, #10262b 100%);
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  overflow-x: hidden;
}

body.kody-login-body .preloader {
  background: #171717;
}

.kody-auth-shell {
  position: relative;
  min-height: 100vh;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(102, 34, 207, 0.42), rgba(102, 34, 207, 0) 34%),
    radial-gradient(circle at 86% 86%, rgba(8, 200, 234, 0.25), rgba(8, 200, 234, 0) 38%),
    linear-gradient(135deg, #17141f 0%, #171717 44%, #10262b 100%);
}

.kody-auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 68%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 68%);
}

.kody-auth-shell::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -170px;
  bottom: -180px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(8, 200, 234, 0.22), rgba(8, 200, 234, 0) 62%),
    radial-gradient(circle at 28% 24%, rgba(102, 34, 207, 0.28), rgba(102, 34, 207, 0) 54%);
  filter: blur(8px);
}

.kody-auth-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 72px, 1440px);
  margin: 0 auto;
  padding: 30px 0;
}

.kody-wordmark {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.kody-wordmark span {
  color: #08c8ea;
}

.kody-auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 600;
}

.kody-auth-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: 64px;
  width: min(100% - 72px, 1120px);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 36px 0 74px;
}

.kody-visual-copy {
  max-width: 720px;
  color: #ffffff;
}

.kody-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
}

.kody-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #08c8ea;
  box-shadow: 0 0 26px rgba(8, 200, 234, 0.85);
}

.kody-visual-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 5.15rem;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.kody-visual-copy h1 span {
  display: block;
  margin-top: 6px;
  color: #08c8ea;
  background: linear-gradient(90deg, #6527ff 0%, #08c8ea 42%, #73dfc2 68%, #ffd54b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kody-visual-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}

.kody-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.kody-signal-row li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
  font-weight: 600;
}

.kody-auth-panel {
  min-width: 0;
}

.kody-login-brand {
  justify-content: center;
  margin: 0 0 22px;
}

.kody-login-wordmark {
  display: inline-block;
  color: #ffffff;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.kody-login-wordmark span {
  color: #08c8ea;
}

.kody-login-card {
  width: 100%;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.78);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.kody-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.kody-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(102, 34, 207, 0.46), rgba(8, 200, 234, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 34px rgba(102, 34, 207, 0.22);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 900;
}

.kody-brand-mark span {
  color: #08c8ea;
}

.kody-brand-wordmark {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kody-login-brand .kody-brand-wordmark {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.kody-brand-text {
  min-width: 0;
}

.kody-brand-label {
  margin: 0 0 5px;
  color: #08c8ea;
  font-size: 0.76rem;
  font-weight: 800;
}

.kody-brand-text h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.42rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.kody-login-intro {
  margin-bottom: 24px;
}

.kody-login-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
}

.kody-field {
  display: block;
  margin-bottom: 16px;
}

.kody-field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
}

.kody-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kody-input-wrap:focus-within {
  border-color: rgba(8, 200, 234, 0.82);
  box-shadow: 0 0 0 4px rgba(8, 200, 234, 0.14);
  background: rgba(255, 255, 255, 0.09);
}

.kody-input-wrap > i {
  width: 48px;
  color: rgba(8, 200, 234, 0.86);
  text-align: center;
  font-size: 1.08rem;
  flex: 0 0 auto;
}

.kody-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 500;
  outline: 0;
  box-shadow: none;
}

.kody-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.kody-input-wrap input:-webkit-autofill,
.kody-input-wrap input:-webkit-autofill:hover,
.kody-input-wrap input:-webkit-autofill:focus,
.kody-input-wrap input:-webkit-autofill:active,
.kody-input-wrap input:autofill {
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  background-color: #2d3034 !important;
  background-image: none !important;
  box-shadow: 0 0 0 1000px #2d3034 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #2d3034 inset !important;
  transition: background-color 999999s ease-out, color 999999s ease-out;
}

.kody-input-wrap:focus-within input:-webkit-autofill,
.kody-input-wrap:focus-within input:autofill {
  background-color: #32363a !important;
  box-shadow: 0 0 0 1000px #32363a inset !important;
  -webkit-box-shadow: 0 0 0 1000px #32363a inset !important;
}

.kody-password-toggle {
  width: 46px;
  height: 46px;
  margin-right: 4px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.kody-password-toggle:hover,
.kody-password-toggle:focus {
  color: #08c8ea;
  background: rgba(8, 200, 234, 0.11);
  outline: 0;
}

.kody-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  color: #161616;
  background: #ffd54b;
  box-shadow: 0 18px 38px rgba(255, 213, 75, 0.22);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kody-submit:hover,
.kody-submit:focus {
  color: #161616;
  background: #ffe074;
  box-shadow: 0 20px 44px rgba(255, 213, 75, 0.3);
  outline: 0;
  transform: translateY(-1px);
}

.kody-submit i {
  font-size: 1.08rem;
}

.kody-login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
  line-height: 1.4;
}

.kody-login-footer strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.kody-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.kody-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08c8ea;
  box-shadow: 0 0 0 4px rgba(8, 200, 234, 0.14);
}

@media (max-width: 991px) {
  body.kody-login-body {
    overflow-y: auto;
  }

  .kody-auth-top {
    width: min(100% - 40px, 720px);
    padding: 24px 0;
  }

  .kody-auth-stage {
    display: block;
    width: min(100% - 40px, 720px);
    min-height: auto;
    padding: 36px 0 48px;
  }

  .kody-visual-copy {
    max-width: 680px;
    margin-bottom: 34px;
  }

  .kody-visual-copy h1 {
    font-size: 4.1rem;
  }

  .kody-visual-copy p {
    max-width: 560px;
    font-size: 0.98rem;
  }

  .kody-login-card {
    max-width: 430px;
  }
}

@media (max-width: 575px) {
  html,
  body.kody-login-body {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
  }

  body.kody-login-body {
    min-height: 100dvh;
    padding: 0 !important;
    overscroll-behavior: none;
  }

  .kody-auth-shell {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
  }

  .kody-auth-shell::before {
    background-size: 54px 54px;
    opacity: 0.6;
  }

  .kody-auth-shell::after {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -110px;
    opacity: 0.82;
  }

  .kody-auth-top {
    display: none;
  }

  .kody-wordmark {
    font-size: 2rem;
    text-align: center;
  }

  .kody-auth-badge {
    display: none;
  }

  .kody-auth-stage {
    width: min(100%, 390px);
    min-height: auto;
    padding: 0;
  }

  .kody-visual-copy,
  .kody-eyebrow {
    display: none;
  }

  .kody-auth-panel {
    width: 100%;
  }

  .kody-login-card {
    max-width: none;
    padding: 22px 20px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 20, 0.7);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  }

  .kody-login-brand {
    justify-content: center;
    margin: 0 0 24px;
  }

  .kody-login-wordmark {
    font-size: 2.3rem;
  }

  .kody-brand-text,
  .kody-login-intro,
  .kody-field > span:first-child,
  .kody-login-footer {
    display: none;
  }

  .kody-field {
    margin-bottom: 14px;
  }

  .kody-input-wrap {
    min-height: 56px;
  }

  .kody-input-wrap input {
    height: 54px;
    font-size: 16px;
    touch-action: manipulation;
  }

  .kody-password-toggle,
  .kody-submit {
    touch-action: manipulation;
  }

  .kody-submit {
    min-height: 56px;
    margin-top: 10px;
    font-size: 16px;
  }

  .kody-submit:hover,
  .kody-submit:focus {
    transform: none;
  }
}

@media (max-width: 575px) and (max-height: 620px) {
  body.kody-login-body {
    overflow-y: auto;
  }

  .kody-auth-shell {
    align-items: flex-start;
  }
}
