/*deep ocean/navy: #123B4A
sea blue: #2D7F8C
lighter aqua: #79B9C0
sand: #D5B98C
warm off-white: #F4F0E7
dark text: #1F2D31*/

/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #163443;
  background: #eef3f5;
}

/* =========================
   MOBILE FIRST
========================= */

.login-page {
  min-height: calc(100vh - 52px);
}

.brand-panel {
  min-height: calc(100vh - 52px);

  background-image:
    linear-gradient(rgba(240, 247, 249, 0.1), rgba(240, 247, 249, 0.1)),
    url("../assets/images/seascape.png");

  background-size: cover;
  background-position: center;
}

.brand-overlay {
  min-height: calc(100vh - 52px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 32px 20px;
}

.seagull-logo {
  width: 110px;
  height: auto;
  margin-bottom: 14px;
}

/* =========================
   BRANDING
========================= */

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand h1 {
  margin: 0;

  font-size: 2.3rem;
  line-height: 0.95;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.brand h1 span {
  display: block;
}

.brand h1 span:last-child {
  color: #3f879b;
}

.brand p {
  max-width: 330px;

  margin: 18px auto 0;

  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================
   LOGIN CARD
========================= */

.login-card {
  width: 100%;
  max-width: 390px;

  padding: 30px 24px;

  background: rgba(255, 255, 255, 0.82);

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;

  box-shadow: 0 18px 50px rgba(20, 54, 68, 0.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lock-icon {
  width: 52px;
  height: 52px;

  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #27768b;
  border-radius: 14px;

  font-size: 1.4rem;
}

.login-card h2 {
  margin: 0 0 28px;

  text-align: center;

  font-size: 1.5rem;
  font-weight: 700;
}

/* =========================
   FORM
========================= */

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 8px;

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input {
  width: 100%;

  padding: 15px 14px;

  border: 1px solid #aebcc2;
  border-radius: 6px;

  background: rgba(255, 255, 255, 0.9);

  color: #163443;

  font-size: 1rem;
}

input:focus {
  outline: 2px solid #3d8799;
  outline-offset: 2px;
}

/* Add space between each completed field and the next label. */

form label:not(:first-child) {
  margin-top: 18px;
}

/* Keep the password toggle positioned inside the password field. */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: #54717d;

  font-size: 1.1rem;
  line-height: 1;

  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(45, 127, 140, 0.1);
  color: #28788c;
}

button {
  margin-top: 18px;

  padding: 15px 18px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  border: 0;
  border-radius: 6px;

  background: #28788c;
  color: white;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
}

button:hover {
  background: #205f70;
}

/* =========================
   SECURITY STATUS
========================= */

.security-status {
  margin-top: 26px;
  padding-top: 20px;

  border-top: 1px solid rgba(80, 110, 120, 0.25);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;

  color: #54717d;

  font-size: 0.78rem;
}

/* =========================
   FOOTER
========================= */

footer {
  min-height: 52px;

  padding: 12px 18px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;

  background: #153849;
  color: rgba(255, 255, 255, 0.8);

  font-size: 0.7rem;
}

footer span:last-child {
  opacity: 0.75;
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 850px) {
  .login-page {
    min-height: calc(100vh - 52px);
  }

  .brand-panel {
    min-height: calc(100vh - 52px);
    background-position: center;
  }

  .brand-overlay {
    min-height: calc(100vh - 52px);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
    gap: 30px;

    align-items: center;

    padding: 40px 5%;
  }

  .brand {
    width: 100%;
    max-width: 520px;

    justify-self: end;

    margin: 0;

    text-align: left;
  }

  .seagull-logo {
    width: 115px;
    height: auto;

    display: block;

    margin: 0 0 10px auto;
  }

  .brand h1 {
    margin: 0;

    font-size: clamp(2.6rem, 3.5vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: 0.1em;

    text-align: right;
  }

  .brand p {
    max-width: 320px;

    margin: 12px 0 0 auto;

    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    line-height: 1.7;
    letter-spacing: 0.1em;

    text-align: right;
    text-transform: uppercase;
  }

  .login-card {
    width: 100%;
    max-width: 480px;

    justify-self: start;

    padding: clamp(28px, 4vh, 44px) 42px;

    max-height: none;
  }

  .login-card h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
  }

  footer {
    justify-content: space-between;

    padding-left: 4%;
    padding-right: 4%;
  }
}
