:root {
  --pink: #e00072;
  --pink-hover: #c90066;
  --navy: #212121;
  --text: #212121;
  --border: #dadbe2;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: start center;
  align-content: start;
  min-height: 100vh;
  color: var(--text);
  background: #f7f7fa;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.login-page {
  display: grid;
  grid-template-columns: 540px 460px;
  width: 1000px;
  height: 900px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(17, 17, 47, 0.06);
}

body > site-footer {
  width: 1000px;
}

.login-body .login-page,
.login-body > site-footer {
  width: 1200px;
}

.login-body .login-page {
  grid-template-columns: 650px 550px;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 72px 38px;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, transparent 42%, rgba(19, 13, 9, 0.76) 100%),
    url("images/Ziemaspaper2.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-right: 1px solid #ececf0;
}

.logo-band {
  display: flex;
  width: 100%;
  margin: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: 570px;
  height: 135px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.login-brand-logo {
  width: min(320px, 100%);
  height: 72px;
}

.login-tagline {
  display: flex;
  margin: 14px 0 0;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #212121;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.login-tagline i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
}

.brand-benefits {
  display: grid;
  width: calc(100% + 104px);
  margin: auto -52px 3px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: #fff;
  text-align: center;
}

.brand-benefit {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 0 9px;
  align-items: center;
  flex-direction: column;
}

.brand-benefit + .brand-benefit::before {
  position: absolute;
  top: 3px;
  bottom: 1px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.24);
}

.brand-benefit-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 10px;
  place-items: center;
  background: rgba(20, 16, 13, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(3px);
}

.brand-benefit-icon::before {
  display: block;
  width: 30px;
  height: 30px;
  content: "";
  background: #fff;
}

.benefit-security::before {
  -webkit-mask: url("icons/drosiba.svg") center / contain no-repeat;
  mask: url("icons/drosiba.svg") center / contain no-repeat;
}

.benefit-profile::before {
  -webkit-mask: url("icons/profile.svg") center / contain no-repeat;
  mask: url("icons/profile.svg") center / contain no-repeat;
}

.benefit-relationships::before {
  -webkit-mask: url("icons/like.svg") center / contain no-repeat;
  mask: url("icons/like.svg") center / contain no-repeat;
}

.brand-benefit strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand-benefit p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.45;
}

.login-panel {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.login-card {
  width: 400px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  object-fit: contain;
  pointer-events: none;
  transform: translateY(-50%);
}

input {
  width: 100%;
  height: 64px;
  padding: 0 50px;
  color: var(--navy);
  border: 1px solid #d8d9e0;
  border-radius: 7px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #515151;
  font-size: 15px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  transform: translateY(-50%);
}

.password-toggle img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.password-toggle:focus-visible,
.primary-button:focus-visible,
.social-button:focus-visible,
.forgot-link:focus-visible,
.register-prompt a:focus-visible {
  outline: 3px solid rgba(224, 0, 114, 0.3);
  outline-offset: 2px;
}

input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(224, 0, 114, 0.12);
}

input.invalid {
  border-color: #c62828;
}

.error {
  min-height: 15px;
  margin: 4px 0 -5px;
  color: #b42318;
  font-size: 14px;
  font-weight:bold;
}

.forgot-link {
  display: block;
  margin: -2px 0 20px;
  color: var(--pink);
  font-size: 15px;
  text-align: right;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-body .login-options { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.login-body .login-options .forgot-link { margin: 0; white-space: nowrap; }
.login-body .remember-option { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 15px; font-weight: 400; white-space: nowrap; cursor: pointer; }
.login-body .remember-option input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--pink); box-shadow: none; cursor: pointer; }
.login-body .remember-option input:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.register-prompt a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

button {
  cursor: pointer;
}

.primary-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  color: white;
  background: var(--pink);
  border: 0;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 700;
  transition: background 160ms ease, transform 100ms ease;
}

.primary-button:hover {
  background: var(--pink-hover);
}
.primary-button:disabled { cursor: wait; opacity: 0.7; }
.form-status { min-height: 18px; margin: 10px 0 0; color: #b42318; font-size: 14px; text-align: center; font-weight: bold; }
.form-status.success { color: #218a4a; }

.primary-button:active,
.social-button:active {
  transform: translateY(1px);
}

.separator {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  text-align: center;
}

.separator::before,
.separator::after {
  flex: 1;
  height: 1px;
  content: "";
  background: #e3e3e8;
}

.separator span {
  color: #515151;
  font-size: 15px;
}

.social-actions {
  display: grid;
  gap: 14px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d8d9e0;
  border-radius: 7px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 100ms ease;
}

.social-button img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-button:hover {
  background: #fafafa;
  border-color: var(--pink);
}

.register-prompt {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  display: flex;
  margin: 0;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.register-prompt a {
  display: inline-flex;
  width: min(400px, calc(100% - 60px));
  height: 58px;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  background: #fff;
  border: 1px solid var(--pink);
  border-radius: 7px;
  text-decoration: none;
  transition: background 160ms ease, transform 100ms ease;
}

.register-prompt a:hover {
  background: #fff6fa;
  text-decoration: none;
}

.register-prompt a:active {
  background: #fde7f2;
  transform: translateY(1px);
}

/* Desktop login uses the photograph across a centered 1300px hero. */
.login-body {
  display: grid;
  min-width: 1000px;
  place-items: start center;
  background: #f7f7fa;
}

.login-body .login-page {
  width: min(1300px, 100%);
  min-height: 900px;
  height: 900px;
  padding: 32px 48px;
  grid-template-columns: minmax(0, 1fr) 470px;
  grid-template-rows: minmax(0, 1fr);
  gap: 30px;
  overflow: visible;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 53%, rgba(10, 8, 7, .5) 100%),
    url("images/Ziemaspaper2.webp");
  background-position: center top;
  background-size: 100% 100%, 1300px 900px;
  background-repeat: no-repeat;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(17, 17, 47, .06);
}

.login-body > site-footer { width: min(1300px, 100%); }

.login-body .brand-panel {
  min-height: 0;
  height: 836px;
  padding: 10px 0 16px;
  overflow: visible;
  background: none;
  border: 0;
}

.login-body .logo-band { transform: translateY(-36px); }

.login-body .login-brand-logo {
  width: min(330px, 100%);
  height: 72px;
}

.login-body .login-tagline {
  margin-top: 8px;
  gap: 12px;
  font-size: 18px;
}

.login-body .brand-benefits {
  width: min(680px, 100%);
  margin: auto auto 8px;
}

.login-body .brand-benefit-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
}

.login-body .brand-benefit-icon::before {
  width: 32px;
  height: 32px;
  background: center / contain no-repeat;
  filter: brightness(0) invert(1);
  -webkit-mask: none;
  mask: none;
}

.login-body .benefit-security::before { background-image: url("icons/drosiba.svg"); }
.login-body .benefit-profile::before { background-image: url("icons/profile.svg"); }
.login-body .benefit-relationships::before { background-image: url("icons/like.svg"); }
.login-body .brand-benefit + .brand-benefit::before { display: none; }

.login-body .brand-benefit strong { font-size: 17px; }
.login-body .brand-benefit p { font-size: 14px; }

.login-body .login-panel {
  align-self: center;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.login-body .login-card {
  display: flex;
  width: 100%;
  min-height: 0;
  padding: 30px 38px;
  flex-direction: column;
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(30, 24, 24, .18);
}
.login-body .field { margin-bottom: 20px; }
.login-body .field label { font-size: 17px; }
.login-body .forgot-link { margin: 0 0 20px; }
.login-body .separator { margin: 28px 0 20px; }
.login-body .social-actions { gap: 12px; }

.login-body .register-prompt {
  position: static;
  width: 100%;
  margin-top: auto;
  padding-top: 30px;
}

.login-body .register-prompt a { width: 100%; }

@media (max-width: 1280px) {
  .login-body .login-page {
    padding-inline: 36px;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 30px;
  }

  .login-body .login-card { padding-inline: 38px; }
  .login-body .login-tagline { font-size: 18px; gap: 10px; }
  .login-body .brand-benefit strong { font-size: 15px; }
  .login-body .brand-benefit p { font-size: 12px; }
}

@media (max-height: 850px) {
  .login-body .login-page { padding-block: 24px; }
  .login-body .brand-panel { height: 852px; }
  .login-body .login-card { min-height: 0; padding-block: 30px; }
  .login-body .field { margin-bottom: 12px; }
  .login-body .register-prompt { padding-top: 20px; }
}
