:root {
  color: #161116;
  background: #fff7fb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 12%, rgba(236, 25, 123, 0.17), transparent 34rem),
    radial-gradient(circle at 88% 86%, rgba(17, 14, 17, 0.12), transparent 30rem),
    linear-gradient(145deg, #fffafd 0%, #fff1f8 52%, #ffffff 100%);
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(26px, 6vw, 42px);
  border: 1px solid rgba(229, 22, 114, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 28px 80px rgba(83, 28, 55, 0.17);
  backdrop-filter: blur(18px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-logo-wrap {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #171217;
  box-shadow: 0 12px 26px rgba(18, 13, 17, 0.2);
}

.login-logo-wrap img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.login-brand p,
.login-brand h1 {
  margin: 0;
}

.login-brand p {
  margin-bottom: 4px;
  color: #e51672;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand h1 {
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.05;
}

.login-lead {
  margin: 24px 0;
  color: #6f5f68;
  font-size: 15px;
  line-height: 1.55;
}

.login-error {
  display: none;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 16, 63, 0.22);
  border-radius: 12px;
  background: #fff0f4;
  color: #a30d3a;
  font-size: 14px;
  font-weight: 700;
}

.login-error.visible {
  display: block;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form label > span:first-child {
  color: #3e3038;
  font-size: 13px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #dfd2d9;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #171217;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: #e51672;
  box-shadow: 0 0 0 4px rgba(229, 22, 114, 0.12);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 76px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 56px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: #f9e8f1;
  color: #b3125b;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
}

.login-submit {
  min-height: 56px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ee207d, #c90e60);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(216, 17, 105, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 34px rgba(216, 17, 105, 0.34);
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.login-note {
  margin: 22px 0 0;
  color: #8a7b83;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 520px) {
  .login-card {
    border-radius: 22px;
  }

  .login-logo-wrap {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 17px;
  }

  .login-logo-wrap img {
    width: 51px;
    height: 51px;
  }
}
