/* Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Center login card perfectly */
.main {
  height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Title */
.login-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Input group full width fix */
.input-group {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

/* Icon inside input */
.input-group-text {
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-right: none;
  padding: 10px 12px;
  font-size: 14px;
}

/* Input field */
.form-control {
  flex: 1; /* THIS FIXES HALF WIDTH ISSUE */
  border: 1px solid #ccc;
  border-left: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

/* Focus */
.form-control:focus {
  border-color: #2a5298;
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #2a5298;
  border: none;
  color: #fff;
  font-weight: 500;
}

.btn-primary:hover {
  background: #1e3c72;
}
/* ================= LOADER ================= */

/* Full screen overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: #000000;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999; /* MUST be high */
}

/* Wrapper */
.loader-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

/* Circle animation base */
#loader-circle {
  fill: none;
  stroke: #2a5298;
  stroke-width: 6;

  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

/* Center logo inside circle */
#loader-logo {
  position: absolute;
  width: 95px;

  top: 45%;
  left: 40%;
  transform: translate(-50%, -50%);
}

/* responsive */
/* ================= RESPONSIVENESS ================= */

/* Tablets */
@media (max-width: 992px) {
  .login-card {
    max-width: 350px;
    padding: 25px;
  }

  .loader-wrapper {
    width: 170px;
    height: 170px;
  }

  #loader-logo {
    width: 80px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .main {
    padding: 20px;
  }

  .login-card {
    max-width: 100%;
    padding: 20px;
    border-radius: 12px;
  }

  .login-title {
    font-size: 20px;
  }

  /* Loader smaller */
  .loader-wrapper {
    width: 140px;
    height: 140px;
  }

  #loader-logo {
    width: 100px;
    left: 55%;
    top: 60%;
  }
}
