:root {
  --navy-950: #17163b;
  --navy-900: #252359;
  --navy-850: #302d69;
  --navy-800: #393675;
  --blue-600: #e64621;
  --blue-500: #f6562e;
  --cyan-400: #fa714d;
  --cyan-300: #ffb6a2;
  --green-500: #12b76a;
  --red-500: #ef4444;
  --slate-950: #252359;
  --slate-700: #344054;
  --slate-600: #475467;
  --slate-500: #667085;
  --slate-400: #98a2b3;
  --slate-300: #d0d5dd;
  --slate-200: #e4e7ec;
  --slate-100: #f2f4f7;
  --slate-50: #f9fafb;
  --white: #ffffff;
  --shadow-lg: 0 24px 48px rgba(37, 35, 89, 0.12);
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--white);
  color: var(--slate-950);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(480px, 0.85fr);
}
.login-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 42px 56px 36px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(250, 113, 77, 0.19),
      transparent 32%
    ),
    radial-gradient(
      circle at 12% 82%,
      rgba(250, 113, 77, 0.12),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--navy-950) 0%,
      var(--navy-900) 48%,
      #302d69 100%
    );
}
.login-hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  top: 50%;
  left: 57%;
  border: 1px solid rgba(255, 182, 162, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.login-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  top: 50%;
  left: 57%;
  border: 1px solid rgba(255, 182, 162, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.login-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 78%,
    transparent 100%
  );
}
.login-hero__header,
.login-hero__content,
.login-hero__footer {
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand__logo {
  width: 150px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(10, 9, 38, 0.15);
}
.brand__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  letter-spacing: 0.35px;
}
.login-hero__content {
  width: min(620px, 100%);
  margin: auto 0;
  padding: 72px 0;
}
.login-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  color: var(--cyan-300);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.login-hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan-400);
}
.login-hero__content h2 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(38px, 4.1vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
}
.login-hero__content h2 span {
  display: block;
  color: var(--cyan-300);
}
.login-hero__description {
  max-width: 570px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.75;
}
.login-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
}
.login-feature {
  min-width: 0;
  padding: 17px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}
.login-feature__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border: 1px solid rgba(255, 182, 162, 0.25);
  border-radius: 9px;
  background: rgba(250, 113, 77, 0.12);
  color: var(--cyan-300);
}
.login-feature__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-feature strong {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-feature span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.4;
}
.login-hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
}
.system-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.system-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 0 4px rgba(50, 213, 131, 0.08);
}
.login-auth {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.login-auth__inner {
  width: min(420px, calc(100% - 64px));
  margin: auto;
  padding: 70px 0;
}
.login-mobile-brand {
  display: none;
}
.login-auth__heading {
  margin-bottom: 34px;
}
.login-auth__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.login-auth__heading h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.login-auth__heading p {
  margin: 11px 0 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.65;
}
.login-form {
  width: 100%;
}
.form-group {
  margin-bottom: 21px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
}
.form-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.forgot-password {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.forgot-password:hover {
  text-decoration: underline;
}
.form-control {
  position: relative;
  display: flex;
  align-items: center;
}
.form-control__icon {
  position: absolute;
  left: 14px;
  display: grid;
  place-items: center;
  color: var(--slate-400);
  pointer-events: none;
}
.form-control__icon svg,
.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-control input {
  width: 100%;
  height: 48px;
  padding: 0 45px 0 43px;
  border: 1px solid var(--slate-300);
  border-radius: 9px;
  outline: none;
  background: var(--white);
  color: var(--slate-950);
  font-size: 13px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.form-control input::placeholder {
  color: var(--slate-400);
}
.form-control input:hover {
  border-color: #aeb7c4;
}
.form-control input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(246, 86, 46, 0.13);
}
.form-control:focus-within .form-control__icon {
  color: var(--blue-500);
}
.password-toggle {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
}
.password-toggle:hover {
  background: var(--slate-100);
  color: var(--slate-600);
}
.login-options {
  display: flex;
  align-items: center;
  margin: -2px 0 25px;
}
.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slate-600);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.remember-me input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.remember-me__check {
  position: relative;
  width: 17px;
  height: 17px;
  border: 1px solid var(--slate-300);
  border-radius: 5px;
  background: var(--white);
  transition: 0.15s ease;
}
.remember-me input:checked + .remember-me__check {
  border-color: var(--blue-500);
  background: var(--blue-500);
}
.remember-me input:checked + .remember-me__check::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  top: 4px;
  left: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.login-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
}
.login-error[hidden] {
  display: none;
}
.login-error svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.login-button {
  width: 100%;
  height: 49px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 8px 20px rgba(230, 70, 33, 0.22);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}
.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(230, 70, 33, 0.28);
}
.login-button:active {
  transform: translateY(0);
}
.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.login-button__arrow {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-button__loading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-button__loading[hidden] {
  display: none;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.login-security {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid var(--slate-200);
}
.login-security svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--slate-400);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-security p {
  margin: 0;
  color: var(--slate-400);
  font-size: 10.5px;
  line-height: 1.6;
}
.login-auth__footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 22px 32px;
  color: var(--slate-400);
  font-size: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1050px) {
  .login-page {
    grid-template-columns: 1fr 1fr;
  }
  .login-hero {
    padding: 36px;
  }
  .login-features {
    grid-template-columns: 1fr;
  }
  .login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .login-feature__icon {
    flex: 0 0 auto;
    margin: 0;
  }
}
@media (max-width: 800px) {
  .login-page {
    display: block;
  }
  .login-hero {
    display: none;
  }
  .login-auth {
    min-height: 100vh;
  }
  .login-auth__inner {
    width: min(420px, calc(100% - 40px));
    padding: 45px 0;
  }
  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 58px;
  }
  .login-mobile-brand .brand__logo {
    width: 130px;
    height: 46px;
    box-shadow: 0 4px 16px rgba(37, 35, 89, 0.1);
  }
  .login-mobile-brand strong {
    display: block;
    color: var(--slate-950);
    font-size: 14px;
  }
  .login-mobile-brand span {
    display: block;
    margin-top: 3px;
    color: var(--slate-400);
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .login-mobile-brand .brand__logo {
    width: 112px;
    height: 42px;
  }
  .login-auth__inner {
    width: calc(100% - 32px);
  }
  .login-auth__heading h2 {
    font-size: 27px;
  }
  .login-auth__footer {
    padding: 18px 16px;
  }
}
