/* =================================================================== */
/* FINAL STYLES FOR MODERN LOGIN PAGE                                */
/* =================================================================== */

/* --- 1. Font Definitions & Global --- */
:root {
  --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
@font-face {
  font-family: "MelodyBold";
  src: url(fonts/BLMelody-Bold.otf);
}
@font-face {
  font-family: "MelodyRegular";
  src: url(fonts/BLMelody-Regular.otf);
}
@font-face {
  font-family: "MelodyLight";
  src: url(fonts/BLMelody-Light.otf);
}

body {
  background-color: #f0f2f5;
}

/* --- 2. Main Layout & Spacing --- */
.login-container {
  /* FIX: Pushes the whole form down to clear the fixed navbar */
  padding-top: 120px;
  padding-bottom: 50px;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-card__form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.login-card__form h1 {
  font-family: "MelodyBold", sans-serif;
  font-size: 48px; /* Your original size */
  margin-bottom: 2rem;
}

/* --- 3. Your Custom InputBox Style (Preserved) --- */
.inputBox {
  position: relative;
  margin-bottom: 35px; /* Spacing between inputs */
}
.inputBox input {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(190, 190, 190);
  background: #fff;
  border-radius: 5px;
  outline: none;
  color: #000000;
  font-size: 1em;
  font-family: "MelodyRegular";
  transition: 0.5s;
}
.inputBox span {
  position: absolute;
  left: 0;
  padding: 10px;
  pointer-events: none;
  font-size: 1em;
  color: rgb(192, 192, 192);
  text-transform: uppercase;
  transition: 0.5s;
}
.inputBox input:valid ~ span,
.inputBox input:focus ~ span {
  color: #18306e;
  transform: translateX(10px) translateY(-7px);
  font-size: 0.65em;
  padding: 0 10px;
  background: #fff;
  border-left: 1px solid #18306e;
  border-right: 1px solid #18306e;
  letter-spacing: 0.2em;
}
.inputBox input:valid,
.inputBox input:focus {
  border: 1px solid #18306e;
}

/* --- 4. Button & Links --- */
.btn-login {
  font-size: 25px;
  font-family: "MelodyBold";
  width: 100%;
  height: 60px;
  border-radius: 10px; /* Consistent with your old style */
  background-color: #18306e;
  color: #fff;
  border: none;
  letter-spacing: 2px;
  transition: 0.5s;
}
.btn-login:hover {
  background-color: #000000;
}
.form-check-label,
a {
  font-family: "MelodyRegular";
  font-size: 14px;
  text-decoration: none;
}
.form-check-input {
  box-shadow: none !important;
}

@media (max-width: 991px) {
  .login-container {
    /* Remove extra padding on mobile to give more space */
    padding-top: 80px;
    padding-bottom: 20px;
  }
  .login-card {
    /* Remove shadow and border on mobile for a flatter, app-like feel */
    box-shadow: none;
    border-radius: 0;
  }
  .login-card__image {
    /* This controls the logo size specifically on mobile */
    max-height: 200px;
    width: auto;
    align-items: center;
    justify-content: center;
    /* Center the logo and add space below it */
  }
  .login-card__form {
    padding: 1rem; /* Reduce padding on mobile to create more space */
  }
}
