/* Emerald Associates styling from OVH Production Environment */

/* Basic layout and background */
body {
  background: #FFF;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  padding: 0;
  margin: 0;
}

/* Remove space background image */
#background_url {
  display: none;
}

/* Links styling */
a {
  color: #00A994;
  text-decoration: none;
}

/* Main container styling */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 0;
  max-width: 100%;
}

/* Fix nested container issues */
.container > .container {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

/* Card styling to match Emerald layout */
.card {
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid black;
  border-radius: 0;
  background-color: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.card-body {
  padding: 0;
}

/* Adjust navbar to take minimal space */
.navbar {
  display: none;
}

.container .container {
  padding: 0;
  margin: 0;
}

/* Center the logo and fix spacing */
.logo {
  max-height: 80px;
  margin: 10px auto;
  display: block;
}

/* Style alerts */
.alert {
  border-radius: 0;
  margin: 10px 40px;
  padding: 10px;
}

.alert-success {
  background-color: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

.alert-warning {
  background-color: #fff8e1;
  border-color: #ffecb3;
  color: #ff8f00;
}

.alert-info {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
  color: #616161;
  padding: 20px;
}

/* Form styling */
form {
  margin: 0;
}

.form-control, .input-group-text {
  border-radius: 0;
}

.col-form-label {
  font-weight: normal;
  color: #444;
}

.input-group {
  margin-bottom: 15px;
}

.form-control:focus {
  border-color: #00A994;
  box-shadow: 0 0 0 0.2rem rgba(0, 169, 148, 0.25);
}

/* Button styling */
.btn-success {
  background-color: #00A994;
  border-color: #00A994;
  border-radius: 0;
}

.btn-success:hover {
  background-color: #008c7a;
  border-color: #008c7a;
}

/* Captcha styling */
.captcha img {
  border: 1px solid #ddd;
  max-width: 100%;
  display: block;
  height: auto;
}

.col-form-label.captcha {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding-right: 0;
}

#captcha-refresh {
  margin-left: 10px;
  cursor: pointer;
  color: #00A994;
  display: inline-block;
  margin-top: 5px;
}

/* Footer styling */
#footer {
  font-family: Arial;
  font-size: 10px;
  color: #333333;
  text-align: center;
  margin-top: 10px;
  padding-bottom: 20px;
}

/* Add black bar at bottom like in Emerald's design */
.card::after {
  content: "";
  display: block;
  height: 10px;
  background-color: black;
  margin: 0 40px 5px 40px;
}

/* Add horizontal rule styling */
hr {
  color: gray;
  margin: 5px 40px 15px;
  opacity: 0.5;
}

/* Remove duplicate title since it's already in the page */
.card::before {
  display: none;
}

/* Add copyright section */
.card::after {
  content: "";
  display: block;
  height: 10px;
  background-color: black;
  margin: 20px 40px 5px 40px;
}

/* Copyright removed per client request */

/* Make form labels clean and aligned */
.text-end {
  text-align: right !important;
  padding-right: 15px;
}

/* Special handling for captcha alignment */
.row .captcha {
  width: 100%;
  padding: 10px 0;
}

@media (min-width: 576px) {
  .row .captcha {
    max-width: 33.33%;
    flex: 0 0 33.33%;
  }
}

/* Better icons in input groups */
.input-group-text {
  background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .card {
    margin: 0 10px;
    width: calc(100% - 20px);
  }
  
  .alert, .card::before, .card::after {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .text-end {
    text-align: left !important;
  }
  
  .offset-sm-4 {
    margin-left: 0;
  }
  
  /* Full width captcha on mobile */
  .col-form-label.captcha {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .captcha img {
    margin: 0 auto;
    max-width: 200px;
  }
}
