.p-login {
  min-height: 100vh;
  margin: 0;
  background: #f6f7f9;
  color: #172033;
}

.p-login__shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 56px);
}

.p-login__panel {
  width: min(100%, 440px);
  padding: 40px 36px 34px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px -28px rgba(15, 23, 42, 0.28);
}

.p-login__brand {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.p-login__logo {
  display: block;
  width: min(42%, 150px);
  height: auto;
}

.p-login__note {
  margin: 0 0 26px;
  color: #526173;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.p-login__error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--color-danger);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-danger);
  font-size: 14px;
  line-height: 1.6;
}

.p-login__form {
  display: grid;
  gap: 18px;
}

.p-login__form .c-field {
  margin-top: 0;
}

.p-login__form .c-field__label {
  color: #526173;
  letter-spacing: 0;
  text-transform: none;
}

.p-login__form .c-field__input {
  min-height: 42px;
  background: #fff;
  border-color: #cfd8e3;
  color: #172033;
  font-size: 15px;
}

.p-login__form .c-field__input:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
}

.p-login__form .c-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  font-size: 15px;
}

.p-login__actions {
  display: grid;
  gap: 12px;
}

.p-login__google {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.p-login__google-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #172033;
  font-weight: 700;
  line-height: 1;
}

.p-login__password {
  position: relative;
  display: block;
}

.p-login__password-input {
  width: 100%;
  padding-right: 46px;
}

.p-login__password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526173;
  cursor: pointer;
  transform: translateY(-50%);
}

.p-login__password-toggle:hover,
.p-login__password-toggle:focus-visible {
  background: #eef2f7;
  color: #172033;
  outline: none;
}

.p-login__password-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-login__password-icon--eye-off {
  display: none;
}

.p-login__password-toggle[aria-pressed="true"] .p-login__password-icon--eye {
  display: none;
}

.p-login__password-toggle[aria-pressed="true"] .p-login__password-icon--eye-off {
  display: block;
}

.p-login__register {
  margin: 22px 0 0;
  color: #526173;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.p-login__register a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-login__register a:hover {
  color: #075985;
}

.p-login__meta {
  margin: 14px 0 0;
  color: #526173;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 480px) {
  .p-login__shell {
    padding: 20px;
  }

  .p-login__panel {
    padding: 30px 22px 28px;
  }
}
