/* Login screen: split layout, brand panel on the left, sign-in form on the right. */

.login {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 100vh;
}

/* ---------- Brand panel ---------- */

.brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(56px, 8vw, 110px);
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}

.brand__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand__scene svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  filter: blur(3px);
  transform: scale(1.04);
}

.brand__mark {
  position: absolute;
  top: 28px;
  left: clamp(56px, 8vw, 110px);
  z-index: 2;
}

.brand__mark img {
  display: block;
  height: 22px;
  opacity: 0.9;
}

.brand__body {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.brand__logo {
  display: block;
  height: 38px;
  margin-bottom: 26px;
}

.brand__kicker {
  margin: 0 0 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.brand__subtitle {
  margin: 14px 0 0;
  font-size: var(--fs-lg);
  color: var(--muted);
}

/* ---------- Form panel ---------- */

.signin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--bg);
}

.signin__inner {
  width: 100%;
  max-width: 340px;
}

.signin__kicker {
  margin: 0 0 10px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.signin__title {
  margin: 0;
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.signin__hint {
  margin: 10px 0 28px;
  font-size: var(--fs-md);
  color: var(--muted);
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}

.field__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input::placeholder {
  color: rgba(169, 181, 199, 0.45);
}

.field__input:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.button {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 500;
  background: var(--key);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-key);
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.button:hover {
  background: #2c3b4f;
}

.button:active {
  background: var(--card);
  transform: scale(0.99);
}

.button[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.alert {
  margin-bottom: 18px;
  padding: 10px 12px;
  font-size: var(--fs-sm);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.75);
  border-radius: var(--r-sm);
}

.signin__footer {
  margin-top: 26px;
  font-size: var(--fs-xs);
  color: rgba(169, 181, 199, 0.7);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .brand {
    min-height: 0;
    padding: 18px 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand__scene svg {
    opacity: 0.5;
  }

  .brand__mark {
    position: static;
    margin-bottom: 16px;
  }

  .brand__mark img {
    height: 18px;
  }

  .brand__logo {
    height: 26px;
    margin-bottom: 12px;
  }

  .brand__kicker {
    margin-bottom: 6px;
  }

  .brand__title {
    font-size: 24px;
  }

  .brand__title br {
    display: none;
  }

  .brand__subtitle {
    display: none;
  }

  .signin {
    align-items: flex-start;
    padding: 36px 24px 56px;
  }
}
