/* Site-specific styles for www.personaljp.com */
:root {
  --panel-surface: #ffffff;
  --left-surface: #ffffff;
  --text-strong: #0f1724;
  --text-muted: #526170;
  --line-soft: #d8dce3;
  --brand-blue: #d93434;
  --brand-blue-deep: #b51f1f;
  --brand-red: #c62828;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  background: #f4f5f7;
  color: var(--text-strong);
}

main.login-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 58% 42%;
  background: var(--panel-surface);
}

.brand-panel {
  border-right: 1px solid var(--line-soft);
  background: var(--left-surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand-logo {
  width: clamp(42px, 4.4vw, 64px);
  height: auto;
  align-self: flex-start;
}

.collage-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 2rem) 0;
}

.collage-image {
  width: clamp(210px, 64%, 560px);
  max-height: 54vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(10, 16, 32, 0.18));
}

.brand-tagline {
  width: clamp(180px, 48%, 340px);
  height: auto;
  align-self: flex-start;
  margin-top: 0;
  margin-bottom: 10vh;
}

.login-panel {
  background: var(--panel-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.login-content {
  flex: 1;
  display: grid;
  place-items: center;
}

.mobile-brand-logo {
  display: none;
}

.login-card {
  width: min(620px, 100%);
}

.login-card h1 {
  margin: 0 0 1.6rem;
  color: var(--text-strong);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.form-message {
  min-height: 1.35rem;
  margin: 0 0 0.85rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: #b22222;
}

.form-message.success {
  color: #1d6f42;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form input {
  width: 100%;
  border: 1px solid #c9d1dd;
  border-radius: 18px;
  padding: 0.95rem 1.1rem;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text-strong);
  background: #fff;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.login-form input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(28, 103, 215, 0.15);
}

.login-form input.error {
  border-color: #b22222;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.15);
}

.login-form button {
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
  cursor: pointer;
}

.login-form button:hover {
  filter: brightness(1.04);
}

.forgot-link {
  display: block;
  margin-top: 1.25rem;
  font-size: 1.08rem;
  color: #111827;
  text-decoration: none;
}

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

.create-account-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 1rem;
  padding: 0.68rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #f0b4b4;
  background: #ffffff;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
}

.create-account-btn:hover {
  border-color: #e08686;
  text-decoration: none;
  background: #fff9f9;
}

.login-footer {
  width: 100%;
  padding-top: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--line-soft);
  margin-bottom: 0.9rem;
}

.footer-line {
  margin: 0.35rem auto;
  line-height: 1.5;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.84rem;
}

.footer-line a {
  color: #2b3e52;
  text-decoration: none;
}

.footer-line a:hover {
  text-decoration: underline;
}

.language-links a.active-language {
  color: #b51f1f;
  font-weight: 700;
  text-decoration: underline;
}

.language-links {
  font-size: 0.88rem;
}

.copyright-line {
  font-size: 0.82rem;
  color: #6a7887;
  margin-top: 0.6rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 22, 38, 0.45);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(12, 24, 44, 0.28);
  padding: 1.15rem 1.15rem 1rem;
}

.modal h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal p {
  margin: 0.5rem 0 0;
  color: #445466;
}

.modal-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.modal-form label {
  display: grid;
  gap: 0.25rem;
  color: #2d3b4e;
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-form input {
  border: 1px solid #c9d1dd;
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.modal-btn {
  border: 1px solid #ccd4df;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-btn.secondary {
  background: #fff;
  color: #2f3f53;
}

.modal-btn.primary {
  border-color: #c62828;
  background: #c62828;
  color: #fff;
}

.modal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1060px) {
  main.login-shell {
    grid-template-columns: 52% 48%;
  }

  .collage-image {
    width: clamp(180px, 70%, 460px);
    max-height: 48vh;
  }
}

@media (max-width: 860px) {
  main.login-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .brand-panel {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .login-content {
    align-content: start;
    gap: 1rem;
    padding-top: 0.5rem;
  }

  .mobile-brand-logo {
    display: block;
    width: clamp(57px, 15vw, 84px);
    height: auto;
    margin: 0 auto;
  }

  .login-card {
    width: min(560px, 100%);
  }

  .footer-line {
    font-size: 0.8rem;
  }

  .language-links {
    font-size: 0.84rem;
  }
}
