/* KEWI Student Portal - login / reset password / public page shell */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--kewi-white);
}

/* The <form> wraps main + footer, so it must fill the page for the footer to sit at the bottom */
.auth-shell > form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.auth-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 7rem;
}

/* Tri-colour ribbon (navy / sky / gold) across the top of the card */
.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--kewi-white);
  border: 0;
  border-radius: var(--kewi-radius-lg);
  box-shadow: 0 18px 48px rgba(8, 23, 106, 0.16), 0 2px 6px rgba(8, 23, 106, 0.08);
  overflow: hidden;
}

.auth-card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--kewi-navy-800) 0 34%,
    var(--kewi-sky-500) 34% 68%,
    var(--kewi-gold-500) 68% 100%);
}

.auth-card-header {
  padding: 1.75rem 1.75rem 1.1rem;
  text-align: center;
  background: linear-gradient(180deg, var(--kewi-sky-100), var(--kewi-white));
}

.auth-card-header img {
  height: 96px;
  width: 96px;
  object-fit: contain;
  padding: 10px;
  border-radius: 50%;
  background: var(--kewi-white);
  border: 3px solid var(--kewi-sky-500);
  box-shadow: 0 6px 16px rgba(8, 23, 106, 0.18);
  margin-bottom: 0.85rem;
}

.auth-card-header h1 {
  font-size: 1.25rem;
  color: var(--kewi-navy-800);
  margin-bottom: 0.15rem;
}

.auth-card-header h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--kewi-gold-500);
  margin: 0.55rem auto 0.6rem;
}

.auth-card-header p {
  color: var(--kewi-gray-600);
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.auth-card-body {
  padding: 1rem 1.75rem 1.75rem;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-top: 0.75rem;
}

.auth-card .input-group-text {
  background-color: var(--kewi-sky-100);
  border-color: var(--kewi-gray-200);
  color: var(--kewi-navy-700);
}

.auth-card .btn-primary {
  padding: 0.65rem 1rem;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(113, 196, 228, 0.55);
}

/* Navy footer band; the sky waves and thin gold line rise from it into the white page */
.auth-page-footer {
  position: relative;
  text-align: center;
  color: var(--kewi-navy-100);
  background-color: var(--kewi-navy-800);
  border-top: 3px solid var(--kewi-gold-500);
  font-size: 0.75rem;
  padding: 0.9rem 1rem;
}

.auth-page-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 110px;
  margin-bottom: 3px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C240 5 480 5 720 45 S1200 95 1440 40 V110 H0 Z' fill='%2371C4E4' fill-opacity='.30'/%3E%3Cpath d='M0 72 C300 30 540 40 760 68 S1200 100 1440 66 V110 H0 Z' fill='%2371C4E4' fill-opacity='.70'/%3E%3Cpath d='M0 90 C320 62 560 72 800 92 S1240 108 1440 88 V110 H0 Z' fill='%2308176A' fill-opacity='.9'/%3E%3Cpath d='M0 86 C320 58 560 68 800 88 S1240 104 1440 84' fill='none' stroke='%23F0E827' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

.auth-page-footer a {
  color: var(--kewi-sky-500);
}

/* Simple content card used by About/Contact */
.public-content-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
