/**
 * Login page styles – matched to CRM (igf-ems) for consistent look.
 * Reuses same class names and visual tokens (colors, radii, fonts).
 */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Poppins:wght@400;500;600&display=swap');

body {
  font-family: 'Poppins', sans-serif !important;
}

/* Full-page login container */
.login-page {
  position: absolute;
  height: 100%;
  width: 100%;
}

/* Background: same as IGF-CRM (image from public/images) */
.bk-img {
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(../images/background.jpg);
}

/* Inner form wrapper */
.form-content {
  position: relative;
  z-index: 1;
}

.bk-light {
  background: none;
}

.pt-2x {
  padding-top: 36px;
}

.pb-3x {
  padding-bottom: 54px;
}

.text-bold {
  font-weight: 500;
  font-family: 'Josefin Sans', sans-serif;
}

/* Login card – same as CRM (semi-transparent white) */
.login-box {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form controls – match CRM */
.login-box .form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #777777;
  background-color: #EDEDED !important;
  border: 2px solid #fff !important;
  border-radius: 10px;
}

.login-box .form-control::placeholder {
  color: #777777;
  opacity: 1;
}

.login-box .form-control:focus {
  border-color: #BFA253 !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(191, 162, 83, 0.25);
}

/* Labels */
.login-box label {
  font-family: 'Josefin Sans', sans-serif;
  color: #333;
  margin-bottom: 6px;
}

/* Primary button – same as CRM */
.login-box .btn-warning,
.login-box .btn-warning:focus {
  color: #ffffff !important;
  background-color: #BFA253 !important;
  padding: 10px 24px;
  min-width: 150px;
  text-align: center;
  border-radius: 10px !important;
  border: 0 !important;
  font-family: 'Josefin Sans', sans-serif !important;
}

.login-box .btn-warning:hover {
  color: #ffffff !important;
  background-color: #00573C !important;
}

.login-box .btn-warning:disabled {
  opacity: 0.7;
}

/* Alerts */
.login-box .alert-success {
  background-color: #d4edda;
  color: #155724;
  border-radius: 10px;
}

.login-box .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 10px;
}

/* Password toggle icon */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-control {
  padding-right: 44px;
}

.password-wrapper i {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #5a5a5a;
}

.password-wrapper i:hover {
  color: #333;
}

/* Match CRM container width on login */
.login-page .container {
  width: 80% !important;
}
