* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 300;
  color: #fff;
  background: #ffffff; /* white page background around centered app */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* prevent horizontal scroll gap when zooming */
}

/* Root container creating horizontal space similar to Bootstrap .container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1680px;
  }
}
@media (min-width: 1700px) {
  .container {
    max-width: 1760px;
  }
}

/* Layout */
.layout {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr; /* fixed left column */
  min-height: 0; /* allow grid to shrink */
  background: #28a2f1; /* ensures blue extends behind portal */
}

.visual {
  background: url("images/partner-ship-bg.png") center center / cover no-repeat;
  position: relative;
  filter: none;
}

/* Portal main area */
.portal {
  background: #28a2f1;
  padding: 60px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
}

.portal__container {
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  /* default: full width until breakpoints kick in */
  text-align: center;
}

/* Bootstrap-like responsive container widths */
@media (min-width: 576px) {
  .portal__container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .portal__container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .portal__container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .portal__container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .portal__container {
    max-width: 1320px;
  }
}

.portal__header h1 {
  font-weight: 300;
  font-size: 3.4rem;
  margin: 0 0 50px;
  letter-spacing: 1px;
  text-align: center;
}

/* Auth Section */
.auth {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.auth h2 {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 0 0 4px;
  text-align: center;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 80%;
  height: 250px;
  margin: auto;
}

.auth__form input[type="text"],
.auth__form input[type="password"] {
  width: 100%;
  max-width: 520px;
  height: 54px;
  padding: 0 16px;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #333;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.auth__form input:focus {
  outline: 2px solid #0b79d0;
  outline-offset: 1px;
}

.auth__row {
  display: flex;
  justify-content: center;
}

.auth__forgot a {
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
}

.auth__forgot a:hover,
.auth__forgot a:focus {
  text-decoration: underline;
}

.auth__actions {
  display: flex;
  justify-content: flex-end;
  max-width: 520px;
}

/* Buttons */
.btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 48px;
  border: none;
  transition: background 0.18s ease, transform 0.18s ease;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: #0b79d0;
  color: #fff;
  min-width: 160px;
}

.btn--primary:hover,
.btn--primary:focus {
  background: #0865ad;
}

.btn--secondary {
  background: #0b79d0;
  color: #fff;
  min-width: 160px;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: #0865ad;
}

.btn:active {
  transform: translateY(1px);
}

/* Signup block */
.signup {
  display: flex;
  gap: 26px;
  /* Align area with form width */
  width: 100%;
  max-width: 520px;
  justify-content: flex-end;
}

.signup__prompt {
  font-size: 2rem;
  font-weight: 300;
  margin: 0;
  text-align: center;
}

.signup .btn {
  align-self: center;
}

/* --- Alignment Refinements (override earlier rules) --- */
/* Create a consistent centered column so the heading and form visually align */
.portal__container {
  max-width: 760px !important; /* narrow the content column */
}

/* Scoped styles for the Partnership Rewards hero */
/* Remove black background so no black band appears beneath content */
.prp-hero {
  display: flex;
  align-items: stretch;
  background: transparent;
  color: #222;
}
/* Reduce the visible height of the left image (desktop) */
.prp-hero__left {
  height: 420px;
}
.prp-hero__left img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prp-hero__right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prp-hero__title {
  flex: 1;
  background: #5eb9eb;
  color: #0d1b22;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  font-weight: 700;
  font-size: 44px;
  text-align: center;
  padding: 46px 24px;
}

.prp-hero__copy {
  flex: 1;
  background: #dcdfe3;
  padding: 28px 36px;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #111;
}
.prp-hero__copy p {
  max-width: 880px;
  margin: 8px auto;
  font-weight: 600;
}
.prp-hero__copy a {
  color: #111;
  text-decoration: underline;
}

/* Make layout responsive */
@media (max-width: 900px) {
  .prp-hero {
    flex-direction: column;
  }
  /* reduce image height on small screens */
  .prp-hero__left {
    flex-basis: auto;
    max-width: 100%;
    height: 260px;
  }
  .prp-hero__left img {
    filter: blur(1px) brightness(0.7);
  }
  .prp-hero__title {
    font-size: 28px;
    padding: 24px;
  }
  .prp-hero__copy {
    padding: 20px;
  }
}

/* Footer */
.site-footer {
  background: #e3eaee;
  color: #0087cd;
  font-size: 1.2rem;
  line-height: 1.4;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
}

.site-footer a {
  color: #0b79d0;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

.divider {
  display: inline-block;
  margin: 0 12px;
  opacity: 0.7;
}

/* Accessibility helper */
.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;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 0 1fr;
  }
  .visual {
    display: none;
  }
  .portal {
    padding: 40px 24px 72px;
  }
  .auth {
    max-width: 540px;
  }
  .portal__container {
    padding: 0 24px;
  }
}

@media (max-width: 520px) {
  .auth__actions {
    justify-content: flex-start;
  }
  .btn {
    padding: 12px 36px;
  }
  .signup {
    align-items: flex-start;
  }
}
