:root {
  --login-ink: #0b1324;
  --login-text: #132033;
  --login-muted: #43536a;
  --login-border: #cbd6e3;
  --login-field: #f7f9fc;
  --login-panel: #ffffff;
  --login-navy: #101b31;
  --login-navy-soft: #16243d;
  --login-blue: #3447b3;
  --login-cyan: #65dbe6;
  --login-shadow: 0 24px 64px rgba(16, 24, 39, 0.12);
}

html,
body {
  min-height: 100%;
  background: #f4f7fb;
}

body {
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 72px);
  background: #132238;
}

.login-brand-panel,
.login-form-panel {
  min-height: auto;
}

.login-brand-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #122237;
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: url("/img/base-icons/login_tire.png") center / cover no-repeat;
  opacity: 0.75;
  filter: saturate(1.08) contrast(1.08) brightness(0.9);
  transform: scale(1.01);
  pointer-events: none;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 72% at 70% 50%, rgba(245, 249, 253, 0.16), transparent 68%),
    linear-gradient(90deg, rgba(12, 23, 40, 0.16) 0%, rgba(12, 23, 40, 0.02) 46%, rgba(12, 23, 40, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 13, 25, 0.1) 0%, rgba(5, 13, 25, 0.34) 100%);
  pointer-events: none;
}

.login-brand-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 23, 40, 0.16) 100%);
  pointer-events: none;
}

.login-form-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 520px);
  margin-right: 0;
  padding: 0;
  background: transparent;
}

.login-card {
  width: 100%;
  padding: 48px 54px 46px;
  border: 1px solid rgba(203, 214, 227, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(4, 12, 24, 0.28);
  backdrop-filter: blur(10px);
}

.login-card-header {
  margin-bottom: 24px;
  text-align: center;
}

.login-card-header::before {
  display: none;
}

.login-card-logo {
  display: block;
  width: 238px;
  height: 130px;
  margin: 0 auto 28px;
  overflow: visible;
}

.login-card-logo img {
  width: 238px;
  height: 130px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 26px rgba(16, 24, 39, 0.14));
}

.login-card h1 {
  margin: 0 0 10px;
  color: var(--login-ink);
  font-size: 2.05rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
}

.login-card p {
  margin: 0;
  color: var(--login-muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.login-field {
  margin-bottom: 22px;
}

.login-field .form-label {
  margin-bottom: 8px;
  color: var(--login-text);
  font-size: 1.1rem;
  font-weight: 800;
}

.login-input,
.login-password-group .login-input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--login-border);
  border-radius: 8px;
  background: var(--login-panel);
  color: var(--login-ink);
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 24, 39, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-input::placeholder {
  color: #9aa8b8;
  font-weight: 600;
}

.login-input:focus {
  border-color: rgba(52, 71, 179, 0.62);
  box-shadow: 0 0 0 4px rgba(52, 71, 179, 0.1);
}

.login-password-group {
  border-radius: 8px;
}

.login-password-group .login-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.login-password-toggle {
  min-width: 54px;
  justify-content: center;
  border: 1px solid var(--login-border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--login-panel);
  color: var(--login-blue);
}

.login-password-toggle i {
  width: 18px;
  font-size: 0.95rem;
  text-align: center;
}

.login-help {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--login-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.login-actions {
  margin-top: 30px;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: var(--login-blue);
  color: #ffffff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-rendering: optimizeLegibility;
  text-shadow: none;
  -webkit-font-smoothing: subpixel-antialiased;
  box-shadow: 0 14px 28px rgba(52, 71, 179, 0.22);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:hover,
.login-submit:focus {
  background: #2b3b96;
  box-shadow: 0 18px 34px rgba(52, 71, 179, 0.27);
  transform: translateY(-1px);
}

.login-submit:disabled {
  transform: none;
  box-shadow: none;
  opacity: 0.72;
}

@media (max-width: 1199.98px) {
  .login-page {
    justify-content: center;
    padding: 32px;
  }

  .login-form-panel {
    min-height: auto;
    align-items: center;
    width: min(100%, 520px);
    margin-right: 0;
    padding: 0;
  }

  .login-card {
    padding: 44px;
    border: 1px solid var(--login-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--login-shadow);
  }

  .login-card-logo {
    width: 260px;
    height: 144px;
  }

  .login-card-logo img {
    width: 260px;
    height: 144px;
  }
}

@media (max-width: 575.98px) {
  .login-page {
    padding: 16px;
  }

  .login-brand-panel::before {
    background-position: center;
  }

  .login-card {
    padding: 32px 22px;
    border-radius: 10px;
  }

  .login-field {
    margin-bottom: 22px;
  }

  .login-input,
  .login-password-group .login-input,
  .login-submit {
    min-height: 56px;
  }
}
