/* =====================
   RESET & GLOBAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #303433;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../img/bg.jpeg) no-repeat center center;
  background-size: cover;
}

/* =====================
   HEADER & LOGO
===================== */
header {
  text-align: center;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 15px auto 0;
  width: fit-content;

  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.logo-container img {
  width: 80px;
  margin-right: 10px;
}

.logo-container p {
  font-size: 2em;
  color: #111;
}

/* Center Google reCAPTCHA */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 5px auto;
}

/* Override iframe positioning */
.g-recaptcha > div {
  margin: 0 auto !important;
}

/* =====================
   MAIN SECTION
===================== */
section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================
   LOGIN CONTAINER
===================== */
.login-container {
  width: 100%;
  max-width: 450px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;

  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =====================
   TITLES
===================== */
.title1 {
  font-size: 1.8em;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-align: center;
}

.title2 {
  font-size: 1em;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-align: center;
}

/* =====================
   FORM
===================== */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.login-form .form-control {
  width: 100%;
  position: relative;
  margin-bottom: 16px;
}

/* =====================
   INPUT & ICON
===================== */
.login-form input {
  width: 100%;
  padding: 14px 64px;

  border: none;
  border-radius: 30px;
  outline: none;

  font-size: 0.8em;
  letter-spacing: 0.5px;
  color: #333;
  background: #e6e6e6;
}

.login-form input ~ i {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  transition: 0.3s;
}

.login-form input:focus ~ i {
  color: #15a0e1;
}

/* =====================
   PASSWORD TOGGLE
===================== */
.login-form .toggle-password {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

.login-form .toggle-password:hover {
  color: #15a0e1;
}

/* =====================
   SELECT BOX
===================== */
.login-form .custom-select {
  position: relative;
}

.login-form .custom-select select {
  width: 100%;
  padding: 14px 64px;

  border: none;
  border-radius: 30px;
  outline: none;

  font-size: 0.8em;
  letter-spacing: 0.5px;
  background: #e6e6e6;
  color: #333;

  appearance: none;
  cursor: pointer;
}

.login-form .custom-select i.fa-id-card {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.login-form .custom-select i.select-arrow {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
}

.login-form .custom-select select:focus ~ i {
  color: #15a0e1;
}

/* =====================
   BUTTON
===================== */
.login-form button.submit {
  padding: 14px 20px;
  margin: 32px auto;

  border: none;
  border-radius: 30px;

  background: #15a0e1;
  color: #fff;

  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;

  cursor: pointer;
  transition: 0.3s;
}

.login-form button.submit:hover {
  opacity: 0.85;
}

/* =====================
   TEXT & LINK
===================== */
.text-center {
  text-align: center;
}

.text-center a strong {
  color: black;
  text-decoration: none;
}

.text-center a strong:hover {
  color: darkblue;
}

/* =====================
   RESPONSIVE
===================== */
@media (min-width: 768px) {
  .logo-container img {
    width: 80px;
    margin-right: 20px;
  }

  .logo-container p {
    font-size: 2.5em;
  }
}
