/* General Body & Theme Styles */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-background {
  background-image: url(/images/BO_image_login.png);
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  box-sizing: border-box;
}

.login-title {
  font-size: 32px;
  font-weight: bold;
  color: #0d3c6d;
  margin-bottom: 25px;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #0d3c6d;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #e6f2ff;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #e6f2ff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #0d3c6d;
  font-family: inherit;
}

.form-group .form-control:focus {
  outline: none;
  border-color: #b2cce5;
  box-shadow: 0 0 1px rgba(13, 60, 109, 0.2);
}

.form-group select.form-control {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%230d3c6d" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 12px;
  padding-right: 30px;
}

/* Button and Link Styles */
.btn-primary {
  background-color: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-primary:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.forgot-password {
  margin-top: 15px;
  text-align: right;
}

.forgot-password a {
  color: #3b82f6;
  font-size: 12px;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Form Error Messages */
.form-error {
  color: #dc3545;
  margin-bottom: 15px;
  font-size: 14px;
}

.text-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.text-error.hide {
  display: none;
}

/* hCaptcha Responsive Styles */
.captcha-container {
  display: flex;
  justify-content: center;
}

.h-captcha {
  width: 100% !important;
  display: flex;
  justify-content: center;
}

/* Alertify Customization */
.ajs-message {
  font-size: 16px;
}

.ajs-content > * {
  font-size: 14px;
}

#warning-content {
  padding: 2rem 3rem;
  border-radius: 5px;
  text-align: center;
  background-color: #ffc107;
  margin-bottom: 10px;
}

#lang {
  text-transform: capitalize;
  padding-left: 10px;
  font-weight: 500;
  height: auto !important;
  line-height: normal !important;
}

#lang option {
  font-weight: 500;
  text-transform: capitalize;
}

.ajs-buttons {
  text-align: center !important;
}

.ajs-button {
  outline: none;
  border: none;
  border-radius: 20px;
  color: #fff;
  background-color: #28a745;
  cursor: pointer;
}

.ajs-button:hover {
  box-shadow: 0 0 1px #000;
}

/* Media Queries for Responsiveness */
@media (max-width: 480px) {
  .login-card {
    padding: 20px 15px;
  }
  .login-title {
    font-size: 24px;
  }
  .form-group .form-control,
  .btn-primary {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }
  .h-captcha {
    transform: scale(0.93);
    transform-origin: center;
  }
}
@media (max-width: 360px) {
  .login-card {
    padding: 15px 10px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .h-captcha {
    transform: scale(0.89);
    transform-origin: center;
  }
}