.login-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 8% 8%, rgba(237, 11, 113, .08), transparent 31%),
    #fbf8fa;
}

.login-shell {
  display: grid;
  width: min(100%, 1120px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0;
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 330px;
  padding: calc(24px + var(--safe-top)) 24px 34px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(145deg, #2e2934 0%, #18161e 58%, #321221 100%);
}

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

.login-visual::before {
  right: -88px;
  bottom: -98px;
  width: 290px;
  height: 290px;
  border: 54px solid rgba(237,11,113,.17);
}

.login-visual::after {
  right: 58px;
  bottom: 48px;
  width: 75px;
  height: 75px;
  background: linear-gradient(145deg, #fa197f, #bd0756);
  box-shadow: 0 24px 65px rgba(237,11,113,.38);
}

.login-brand {
  position: absolute;
  z-index: 2;
  top: calc(22px + var(--safe-top));
  left: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
}

.login-brand > span:last-child { display: grid; line-height: 1.08; }
.login-brand strong { font-size: 18px; letter-spacing: -.03em; }
.login-brand small { margin-top: 3px; color: #c9c2cc; font-size: 11px; }

.login-message {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: min(100%, 560px);
}

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  color: #f5b4d1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.private-badge svg { width: 14px; }
.login-message h1 { margin: 14px 0 11px; font-size: clamp(38px, 11vw, 66px); }
.login-message > p { max-width: 500px; margin: 0; color: #cdc6d0; font-size: 14px; line-height: 1.5; }
.login-benefits { display: none; }

.login-panel {
  display: grid;
  align-content: center;
  padding: 28px 20px calc(28px + var(--safe-bottom));
}

.login-card {
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 20px 55px rgba(45,26,39,.09);
}

.login-card h2 { margin: 0 0 8px; font-size: clamp(28px, 8vw, 38px); line-height: 1.05; }
.login-help { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-form { display: grid; gap: 16px; }
.login-form > label { display: grid; gap: 7px; color: #4f4a53; font-size: 12px; font-weight: 800; }

.field-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 0 13px;
  border: 1.5px solid #e5dfe4;
  border-radius: 16px;
  background: #fcfafb;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field-control:focus-within {
  border-color: rgba(237,11,113,.55);
  background: white;
  box-shadow: 0 0 0 4px rgba(237,11,113,.08);
}

.field-control > svg { width: 21px; margin-right: 10px; color: #a39ca5; }
.field-control input { width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.field-control input::placeholder { color: #aaa3ac; }
.password-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: #827b84; cursor: pointer; }
.password-toggle svg { width: 21px; }

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 57px;
  margin-top: 3px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #f20f78, #c4075a);
  color: white;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(237,11,113,.24);
}

.login-submit svg { width: 20px; transition: transform .18s ease; }
.login-submit:hover svg { transform: translateX(3px); }
.login-submit:disabled { cursor: wait; opacity: .72; }

.login-error {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #ffd3db;
  border-radius: 14px;
  background: #fff2f5;
  color: #a6233c;
  font-size: 12px;
  line-height: 1.4;
}

.login-error svg { width: 20px; }
.manager-help { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.manager-help > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: var(--pink-soft); color: var(--pink-dark); font-weight: 900; }
.manager-help p { display: grid; gap: 3px; margin: 0; }
.manager-help strong { font-size: 12px; }
.manager-help small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.login-legal { width: min(100%, 470px); margin: 17px auto 0; color: #938c95; font-size: 10px; line-height: 1.45; text-align: center; }

@media (min-width: 800px) {
  .login-shell { grid-template-columns: minmax(390px, .92fr) 1.08fr; padding: 24px; }
  .login-visual { min-height: calc(100svh - 48px); padding: 40px; border-radius: 34px; }
  .login-brand { top: 36px; left: 36px; }
  .login-message { padding-bottom: 44px; }
  .login-message h1 { font-size: clamp(52px, 5vw, 72px); }
  .login-message > p { font-size: 16px; }
  .login-benefits { display: grid; gap: 10px; margin-top: 27px; }
  .login-benefits span { display: flex; align-items: center; gap: 9px; color: #e1dbe3; font-size: 12px; font-weight: 700; }
  .login-benefits i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(53,213,131,.14); color: #5ce49a; font-style: normal; }
  .login-panel { padding: 42px; }
  .login-card { padding: 36px; }
}

@media (max-height: 690px) and (max-width: 799px) {
  .login-visual { min-height: 235px; padding-bottom: 24px; }
  .login-message h1 { margin-block: 10px 7px; font-size: 34px; }
  .login-message > p { display: none; }
  .login-panel { padding-top: 18px; }
  .login-card { padding-block: 20px; }
  .login-help { margin-bottom: 16px; }
}
