:root {
  --abh-primary: #23589f;
  --abh-primary-dark: #172f69;
  --abh-primary-deep: #0f2453;
  --abh-sky: #17a9e6;
  --abh-cyan: #39c8f2;
  --abh-text: #1b2a43;
  --abh-muted: #6d7d93;
  --abh-border: #dfe9f5;
  --abh-white: #ffffff;
  --abh-bg: #f4f9fd;
  --abh-danger: #dc3545;
  --abh-shadow: 0 24px 70px rgba(15, 36, 83, 0.18);
  --abh-radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--abh-text);
  background: var(--abh-bg);
  overflow: hidden;
}

a {
  color: var(--abh-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--abh-sky);
}

button,
input {
  font: inherit;
}

.abh-login-page {
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr);
  background:
    radial-gradient(circle at top right, rgba(57, 200, 242, 0.24), transparent 30%),
    linear-gradient(135deg, #eef7fc 0%, #ffffff 58%, #edf7fd 100%);
  overflow: hidden;
}

.abh-login-visual {
  position: relative;
  min-height: 0;
  padding: clamp(24px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.abh-login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/abhsm.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: -3;
}

.abh-login-visual::after {
  content: "";
  position: absolute;
  inset: auto -14% -22% auto;
  width: min(520px, 48vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(23, 169, 230, 0.32);
  filter: blur(6px);
  z-index: -1;
}

.abh-login-visual__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 36, 83, 0.92) 0%, rgba(35, 88, 159, 0.76) 48%, rgba(23, 169, 230, 0.34) 100%),
    linear-gradient(0deg, rgba(15, 36, 83, 0.46), rgba(15, 36, 83, 0.04));
  z-index: -2;
}

.abh-login-visual__top,
.abh-login-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.abh-login-logo {
  display: block;
  width: min(224px, 56vw);
  height: auto;
  object-fit: contain;
}

.abh-login-logo--light {
  width: min(250px, 40vw);
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.abh-login-pill,
.abh-login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.abh-login-pill {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.abh-login-badge {
  color: var(--abh-primary);
  background: rgba(23, 169, 230, 0.11);
  border: 1px solid rgba(23, 169, 230, 0.18);
}

.abh-login-visual__content {
  width: min(620px, 100%);
  padding-bottom: clamp(12px, 3vw, 34px);
}

.abh-kicker {
  display: inline-flex;
  position: relative;
  margin-bottom: 14px;
  padding-left: 42px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.abh-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: var(--abh-cyan);
}

.abh-login-visual h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.abh-login-visual p {
  width: min(540px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.75;
}

.abh-login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(520px, 100%);
  margin-top: 34px;
}

.abh-login-stats div {
  min-height: 96px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.abh-login-stats strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: #fff;
}

.abh-login-stats span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.abh-login-panel {
  min-height: 0;
  padding: clamp(18px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.abh-login-panel::before,
.abh-login-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.abh-login-panel::before {
  width: 160px;
  height: 160px;
  top: 7%;
  right: 10%;
  background: rgba(23, 169, 230, 0.12);
}

.abh-login-panel::after {
  width: 96px;
  height: 96px;
  bottom: 11%;
  left: 8%;
  background: rgba(35, 88, 159, 0.08);
}

.abh-login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(223, 233, 245, 0.86);
  border-radius: var(--abh-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--abh-shadow);
  backdrop-filter: blur(18px);
}

.abh-login-title {
  margin-top: 28px;
}

.abh-login-title h2 {
  margin: 0;
  color: var(--abh-primary-deep);
  font-size: clamp(27px, 3.1vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.abh-login-title p {
  margin: 12px 0 0;
  color: var(--abh-muted);
  font-size: 15px;
  line-height: 1.7;
}

.abh-login-form {
  margin-top: 22px;
}

.abh-form-group + .abh-form-group {
  margin-top: 14px;
}

.abh-form-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--abh-primary-deep);
  font-size: 13px;
  font-weight: 800;
}

.abh-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.abh-input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 52px;
  color: var(--abh-primary-deep);
  border: 1px solid var(--abh-border);
  border-radius: 18px;
  outline: none;
  background: rgba(244, 249, 253, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.abh-input-wrap input::placeholder {
  color: #9aaabe;
}

.abh-input-wrap input:focus {
  border-color: rgba(23, 169, 230, 0.78);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 169, 230, 0.13);
}

.abh-input-icon,
.abh-password-toggle {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--abh-primary);
}

.abh-input-icon {
  left: 18px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.abh-input-icon svg,
.abh-password-toggle svg,
.abh-login-submit svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.abh-password-toggle {
  right: 15px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: #71849d;
}

.abh-password-toggle:hover {
  background: rgba(23, 169, 230, 0.11);
  color: var(--abh-primary);
}

.abh-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--abh-muted);
  font-size: 13px;
  font-weight: 700;
}

.abh-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.abh-checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--abh-primary);
}

.abh-login-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--abh-primary) 0%, #1d75bd 52%, var(--abh-sky) 100%);
  box-shadow: 0 18px 34px rgba(35, 88, 159, 0.26);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.abh-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(35, 88, 159, 0.34);
  filter: saturate(1.06);
}

.abh-login-submit:active {
  transform: translateY(0);
}

.abh-login-submit svg {
  width: 22px;
  height: 22px;
}

.abh-login-security {
  margin-top: 20px;
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(23, 169, 230, 0.14);
  background: rgba(23, 169, 230, 0.07);
}

.abh-login-security span {
  margin-top: 1px;
}

.abh-login-security p {
  margin: 0;
  color: #5f7188;
  font-size: 12.5px;
  line-height: 1.55;
}

.is-loading .abh-login-submit {
  pointer-events: none;
  opacity: 0.82;
}

.is-loading .abh-login-submit span::after {
  content: "...";
}

@media (max-width: 1100px) {
  .abh-login-page {
    grid-template-columns: 0.9fr 1fr;
  }

  .abh-login-visual {
    padding: 34px;
  }

  .abh-login-stats {
    grid-template-columns: 1fr;
  }

  .abh-login-stats div {
    min-height: auto;
  }
}

@media (max-width: 880px) {
  .abh-login-page {
    grid-template-columns: 1fr;
    min-height: 100vh;
    overflow: auto;
  }

  .abh-login-visual {
    min-height: 42vh;
    padding: 24px;
  }

  .abh-login-visual__content {
    padding-top: 70px;
    padding-bottom: 0;
  }

  .abh-login-visual h1 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .abh-login-visual p {
    font-size: 15px;
  }

  .abh-login-stats {
    display: none;
  }

  .abh-login-panel {
    min-height: auto;
    padding: 22px;
    align-items: flex-start;
  }

  .abh-login-card {
    margin-top: -52px;
  }
}

@media (max-width: 560px) {
  .abh-login-visual {
    min-height: 36vh;
  }

  .abh-login-visual__top {
    align-items: flex-start;
  }

  .abh-login-logo--light {
    width: 178px;
    padding: 7px 10px;
  }

  .abh-login-pill {
    display: none;
  }

  .abh-login-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .abh-login-card__header {
    align-items: flex-start;
  }

  .abh-login-card__header .abh-login-logo {
    width: 178px;
  }

  .abh-login-badge {
    padding: 6px 10px;
    font-size: 10px;
  }

  .abh-login-title {
    margin-top: 28px;
  }

  .abh-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .abh-input-wrap input {
    min-height: 54px;
    border-radius: 16px;
  }

  .abh-login-submit {
    min-height: 54px;
    border-radius: 16px;
  }
}

.abh-alert-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #9f1d2f;
  background: rgba(220, 53, 69, 0.09);
  border: 1px solid rgba(220, 53, 69, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
