/* Page: Welcome Login | Version: v12 */

/* ===== Local Fonts Start ===== */
@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-Light.woff2") format("woff2"),
    url("../font/Shabnam-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam.woff2") format("woff2"),
    url("../font/Shabnam.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-Medium.woff2") format("woff2"),
    url("../font/Shabnam-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src:
    url("../font/Shabnam-Bold.woff2") format("woff2"),
    url("../font/Shabnam-Bold.woff") format("woff");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
/* ===== Local Fonts End ===== */

/* ===== Reset & Base Start ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  color-scheme: dark;
  --color-bg: #050505;
  --color-surface: rgba(22, 18, 11, 0.84);
  --color-surface-strong: rgba(13, 11, 8, 0.94);
  --color-surface-light: rgba(214, 177, 90, 0.065);
  --color-border: rgba(223, 190, 108, 0.18);
  --color-border-strong: rgba(223, 190, 108, 0.32);
  --color-text: #fff7e6;
  --color-text-muted: #d9c8a0;
  --color-gold: #d6b15a;
  --color-gold-light: #f1d692;
  --color-gold-deep: #b88938;
  --color-success: #77d49a;
  --color-warning: #ffc857;
  --shadow-card: 0 32px 110px rgba(0, 0, 0, 0.56);
  --radius-shell: clamp(26px, 3vw, 38px);
  --radius-control: 15px;
  --transition-fast: 180ms ease;
  --transition-normal: 280ms ease;
}

html {
  min-width: 320px;
  min-height: 100%;
  background-color: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family:
    "Shabnam",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #120f08;
  background-color: var(--color-gold-light);
}
/* ===== Reset & Base End ===== */

/* ===== Background Start ===== */
.page-background {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(214, 177, 90, 0.13), transparent 29%),
    radial-gradient(circle at 14% 80%, rgba(184, 137, 56, 0.09), transparent 25%),
    linear-gradient(180deg, #070707 0%, #040404 100%);
}

.page-background__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.08;
  scale: 1.04;
  animation: background-breath 18s ease-in-out infinite alternate;
}

.page-background__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.25), rgba(5, 5, 5, 0.9)),
    radial-gradient(circle at 50% 44%, transparent 0, rgba(5, 5, 5, 0.2) 42%, rgba(5, 5, 5, 0.8) 100%);
}

.page-background__grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 177, 90, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 177, 90, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 8%, transparent 74%);
  opacity: 0.55;
}

.page-background__glow {
  position: absolute;
  z-index: 3;
  width: clamp(220px, 34vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
}

.page-background__glow--first {
  top: -18%;
  right: -8%;
  background-color: rgba(214, 177, 90, 0.7);
}

.page-background__glow--second {
  bottom: -25%;
  left: -10%;
  background-color: rgba(184, 137, 56, 0.48);
}

@keyframes background-breath {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.055) translate3d(0, -1%, 0);
  }
}
/* ===== Background End ===== */

/* ===== Admin Login Page Start ===== */
.admin-login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(18px, 4vw, 50px))
    clamp(14px, 4vw, 48px)
    calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 4vw, 50px));
}
/* ===== Admin Login Page End ===== */

/* ===== Login Shell Start ===== */
.login-shell {
  position: relative;
  width: min(100%, 1040px);
  min-height: min(720px, calc(100svh - 72px));
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-shell);
  background:
    linear-gradient(145deg, rgba(214, 177, 90, 0.075), rgba(255, 255, 255, 0.015) 48%),
    rgba(8, 8, 8, 0.84);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 247, 230, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(116%);
  backdrop-filter: blur(24px) saturate(116%);
  isolation: isolate;
}

.login-shell::before {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -100px;
  width: 460px;
  height: 320px;
  border-radius: 50%;
  background-color: rgba(214, 177, 90, 0.11);
  filter: blur(84px);
  content: "";
  pointer-events: none;
}
/* ===== Login Shell End ===== */

/* ===== Showcase Panel Start ===== */
.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border-left: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 50% 28%, rgba(214, 177, 90, 0.14), transparent 35%),
    linear-gradient(145deg, rgba(214, 177, 90, 0.055), rgba(0, 0, 0, 0.12));
}

.login-showcase::before,
.login-showcase::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-showcase::before {
  top: 18%;
  left: -70px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(214, 177, 90, 0.1);
}

.login-showcase::after {
  right: -50px;
  bottom: 8%;
  width: 170px;
  height: 170px;
  background-color: rgba(214, 177, 90, 0.04);
}
/* ===== Showcase Panel End ===== */

/* ===== Showcase Brand Start ===== */
.showcase-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
}

.showcase-brand__logo-wrap,
.mobile-brand__logo-wrap {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  background: rgba(8, 8, 8, 0.76);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 247, 230, 0.08);
}

.showcase-brand__logo-wrap {
  width: 78px;
  height: 78px;
  border-radius: 24px;
}

.showcase-brand__logo,
.mobile-brand__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-brand__identity,
.mobile-brand__identity {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.showcase-brand__identity strong {
  color: var(--color-text);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.showcase-brand__identity small {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}
/* ===== Showcase Brand End ===== */

/* ===== Showcase Content Start ===== */
.showcase-content {
  position: relative;
  z-index: 2;
  margin-block: auto;
  padding-block: 46px;
}

.showcase-content__eyebrow {
  color: var(--color-gold-light);
  font-size: 12px;
  font-weight: 700;
}

.showcase-content h2 {
  max-width: 430px;
  margin-top: 12px;
  color: var(--color-text);
  font-size: clamp(34px, 4.6vw, 53px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.showcase-content p {
  max-width: 420px;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 2;
}
/* ===== Showcase Content End ===== */

/* ===== Showcase Features Start ===== */
.showcase-features {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.showcase-features span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(214, 177, 90, 0.13);
  border-radius: 12px;
  background: rgba(214, 177, 90, 0.045);
  color: rgba(255, 247, 230, 0.78);
  font-size: 12px;
}

.showcase-features i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(214, 177, 90, 0.09);
  color: var(--color-gold-light);
}
/* ===== Showcase Features End ===== */

/* ===== Showcase Signature Start ===== */
.showcase-signature {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 24px;
  color: rgba(217, 200, 160, 0.5);
  font-size: 10px;
}

.showcase-signature strong {
  color: rgba(255, 247, 230, 0.84);
  font-size: 12px;
  letter-spacing: 0.04em;
}
/* ===== Showcase Signature End ===== */

/* ===== Login Panel Start ===== */
.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  background: rgba(7, 7, 7, 0.45);
}
/* ===== Login Panel End ===== */

/* ===== Login Navigation Start ===== */
.login-navigation {
  position: absolute;
  top: clamp(22px, 4vw, 34px);
  right: clamp(24px, 5vw, 58px);
  left: clamp(24px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.back-link,
.admin-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: rgba(214, 177, 90, 0.045);
  font-size: clamp(11px, 2vw, 13px);
}

.back-link {
  color: rgba(217, 200, 160, 0.72);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.back-link:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background-color: rgba(214, 177, 90, 0.08);
  transform: translateX(2px);
}

.admin-badge {
  border-color: rgba(119, 212, 154, 0.18);
  background-color: rgba(119, 212, 154, 0.06);
  color: #c7f1d5;
  font-weight: 600;
}
/* ===== Login Navigation End ===== */

/* ===== Mobile Brand Start ===== */
.mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.mobile-brand__logo-wrap {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.mobile-brand__identity strong {
  color: var(--color-text);
  font-size: 23px;
  font-weight: 800;
}

.mobile-brand__identity small {
  color: var(--color-text-muted);
  font-size: 11px;
}
/* ===== Mobile Brand End ===== */

/* ===== Login Introduction Start ===== */
.login-introduction {
  margin-top: 34px;
  text-align: right;
}

.login-introduction__eyebrow {
  color: var(--color-gold-light);
  font-size: 12px;
  font-weight: 700;
}

.login-introduction__title {
  margin-top: 8px;
  color: var(--color-text);
  font-size: clamp(35px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.login-introduction__description {
  max-width: 440px;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: clamp(12px, 2.4vw, 14px);
  line-height: 1.95;
  text-wrap: pretty;
}
/* ===== Login Introduction End ===== */

/* ===== Login Form Start ===== */
.login-form {
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 5vw, 34px);
}
/* ===== Login Form End ===== */

/* ===== Form Field Start ===== */
.form-field {
  display: grid;
  gap: 8px;
}

.form-field__label {
  width: fit-content;
  color: rgba(255, 247, 230, 0.88);
  font-size: clamp(12px, 2.4vw, 14px);
  font-weight: 600;
}

.form-field__control {
  position: relative;
}

.form-field__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 17px;
  color: rgba(217, 200, 160, 0.48);
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-field__input {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(223, 190, 108, 0.16);
  border-radius: var(--radius-control);
  outline: none;
  background-color: rgba(214, 177, 90, 0.045);
  color: var(--color-text);
  padding: 0 49px 0 17px;
  font-size: clamp(13px, 2.6vw, 15px);
  caret-color: var(--color-gold-light);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);

  text-align: right;
}

.form-field__input--password {
  padding-left: 52px;
}

.form-field__input::placeholder {
  color: rgba(217, 200, 160, 0.38);
  opacity: 1;
  text-align: right;
}

.form-field__control:focus-within .form-field__icon {
  color: var(--color-gold-light);
}

.form-field__input:focus {
  border-color: rgba(241, 214, 146, 0.62);
  background-color: rgba(214, 177, 90, 0.07);
  box-shadow:
    0 0 0 4px rgba(214, 177, 90, 0.09),
    inset 0 1px 0 rgba(255, 247, 230, 0.06);
}

.form-field__input:-webkit-autofill,
.form-field__input:-webkit-autofill:hover,
.form-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  box-shadow: 0 0 0 1000px #17130d inset;
  caret-color: var(--color-text);
  transition: background-color 9999s ease-out;
}
/* ===== Form Field End ===== */

/* ===== Password Toggle Start ===== */
.password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background-color: transparent;
  color: rgba(217, 200, 160, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--color-text);
  border-color: rgba(214, 177, 90, 0.14);
  background-color: rgba(214, 177, 90, 0.07);
}
/* ===== Password Toggle End ===== */

/* ===== Caps Lock Message Start ===== */
.caps-lock-message {
  max-height: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--color-warning);
  font-size: 11px;
  opacity: 0;
  transition:
    max-height var(--transition-normal),
    opacity var(--transition-fast);
}

.caps-lock-message--visible {
  max-height: 28px;
  opacity: 1;
}
/* ===== Caps Lock Message End ===== */

/* ===== Form Options Start ===== */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(217, 200, 160, 0.66);
  font-size: clamp(11px, 2.2vw, 13px);
  cursor: pointer;
  user-select: none;
}

.remember-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.remember-option__check {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 190, 108, 0.22);
  border-radius: 6px;
  background-color: rgba(214, 177, 90, 0.045);
  color: transparent;
  font-size: 10px;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.remember-option__input:checked + .remember-option__check {
  border-color: var(--color-gold);
  background-color: var(--color-gold);
  color: #171006;
}

.remember-option__input:focus-visible + .remember-option__check {
  box-shadow: 0 0 0 4px rgba(214, 177, 90, 0.12);
}
/* ===== Form Options End ===== */

/* ===== Submit Button Start ===== */
.submit-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(241, 214, 146, 0.32);
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 54%, var(--color-gold-deep));
  color: #171006;
  padding: 0 18px;
  box-shadow:
    0 18px 38px rgba(184, 137, 56, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: clamp(13px, 2.8vw, 15px);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.submit-button:hover {
  box-shadow:
    0 22px 44px rgba(184, 137, 56, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.submit-button:active {
  box-shadow:
    0 12px 28px rgba(184, 137, 56, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(0);
}

.submit-button i:first-child {
  justify-self: start;
}

.submit-button i:last-child {
  justify-self: end;
  transition: transform var(--transition-fast);
}

.submit-button:hover i:last-child {
  transform: none;
}
/* ===== Submit Button End ===== */

/* ===== Security Notice Start ===== */
.security-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: clamp(22px, 4vw, 30px);
  padding-top: clamp(18px, 4vw, 24px);
  border-top: 1px solid rgba(223, 190, 108, 0.12);
  color: rgba(217, 200, 160, 0.48);
  font-size: clamp(10px, 2.1vw, 12px);
  line-height: 1.8;
}

.security-notice__icon {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background-color: rgba(119, 212, 154, 0.08);
  color: rgba(119, 212, 154, 0.78);
  font-size: 11px;
}
/* ===== Security Notice End ===== */

/* ===== Focus States Start ===== */
.back-link:focus-visible,
.password-toggle:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgba(241, 214, 146, 0.42);
  outline-offset: 3px;
}
/* ===== Focus States End ===== */

/* ===== Responsive Start ===== */
@media (max-width: 900px) {
  .login-shell {
    width: min(100%, 560px);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-showcase {
    display: none;
  }

  .login-panel {
    min-height: 680px;
  }

  .mobile-brand {
    display: flex;
  }

  .login-introduction {
    text-align: center;
  }

  .login-introduction__description {
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .admin-login-page {
    padding-inline: 10px;
  }

  .login-shell {
    border-radius: 24px;
  }

  .login-panel {
    min-height: auto;
    padding: 22px 16px 24px;
  }

  .login-navigation {
    top: 18px;
    right: 16px;
    left: 16px;
  }

  .back-link,
  .admin-badge {
    min-height: 36px;
    padding-inline: 10px;
  }

  .mobile-brand {
    margin-top: 64px;
  }

  .login-introduction {
    margin-top: 28px;
  }

  .form-field__input {
    height: 54px;
  }

  .submit-button {
    min-height: 56px;
  }
}

@media (max-width: 360px) {
  .login-panel {
    padding-inline: 13px;
  }

  .back-link span,
  .admin-badge span {
    font-size: 10px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .admin-login-page {
    align-items: start;
  }

  .login-shell {
    min-height: 680px;
  }
}
/* ===== Responsive End ===== */

/* ===== Reduced Motion Start ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===== Reduced Motion End ===== */

/* ===== Backdrop Filter Fallback Start ===== */
@supports not ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  .login-shell {
    background-color: rgba(10, 9, 7, 0.97);
  }
}
/* ===== Backdrop Filter Fallback End ===== */

/* ===== Django Form Feedback Start ===== */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.8;
}

.form-alert ul,
.field-error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-alert--error {
  color: #ffb4b4;
  border-color: rgba(255, 91, 91, 0.28);
  background: rgba(120, 18, 18, 0.2);
}

.form-alert--warning {
  color: #ffe4a1;
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(100, 75, 8, 0.18);
}

.field-error {
  margin-top: 0.55rem;
  color: #ffb4b4;
  font-size: 0.8rem;
  line-height: 1.7;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  min-height: 65px;
  overflow: hidden;
}
/* ===== Django Form Feedback End ===== */

/* Fan30Tech brand mark instead of the key glyph. */
.form-field__icon--brand{width:20px!important;height:20px!important;object-fit:contain;border-radius:6px;}
