/* StarAfrica login — organisation 2 colonnes (panneau + formulaire) */
.sa-login-page {
  --sa-ink: #001f23;
  --sa-green: #166161;
  --sa-green-dark: #0f4545;
  --sa-green-soft: #2a9a9a;
  --sa-accent: #d4a017;
  --sa-page: #e8eceb;
  min-height: 100%;
  background: var(--sa-page);
  font-family: Roboto, "Segoe UI", sans-serif;
}

.sa-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.sa-login-card {
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 520px;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 31, 35, 0.18);
}

/* ——— Colonne gauche ——— */
.sa-login-brand {
  flex: 0 0 40%;
  max-width: 40%;
  background: var(--sa-green);
  color: #fff !important;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sa-brand-top {
  display: flex;
  flex-direction: column;
}

.sa-login-brand .sa-brand-logo {
  width: 220px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  margin-bottom: 28px;
  background: transparent !important;
  padding: 0;
  filter: none;
}

.sa-brand-tagline {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
}

.sa-brand-tagline::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.7);
}

.sa-login-brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: none;
  color: #ffffff !important;
}

.sa-brand-desc {
  margin: 32px 0 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78) !important;
}

/* ——— Colonne droite (formulaire) ——— */
.sa-login-form {
  flex: 1;
  padding: 52px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.sa-form-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sa-accent) !important;
}

.sa-form-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--sa-accent);
}

.sa-login-form h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--sa-ink) !important;
}

.sa-login-form .sa-form-lead {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.5;
  color: #62797b;
}

#flash-message {
  margin-bottom: 16px;
}

#message_login {
  min-height: 0;
  margin-bottom: 8px;
}

.sa-login-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.sa-field {
  margin-bottom: 18px;
}

.sa-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #454545;
}

.sa-input-wrap {
  position: relative;
}

.sa-input-wrap .sa-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #4f686a !important;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.sa-input-wrap .sa-input-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sa-input-wrap .form-control {
  height: 48px;
  padding: 10px 46px 10px 44px;
  border: 1px solid #d5dde0;
  border-radius: 0;
  background: #eef3f5;
  color: var(--sa-ink);
  box-shadow: none;
}

.sa-input-wrap .form-control:focus {
  background: #e8eef0;
  border-color: var(--sa-green);
  box-shadow: 0 0 0 2px rgba(22, 97, 97, 0.2);
}

.sa-input-wrap .form-control.is-invalid,
.sa-input-wrap .form-control[style*="red"] {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.45);
}

.sa-input-wrap--pwd .form-control {
  padding-right: 48px;
}

.sa-input-wrap--pwd input[type="password"]::-ms-reveal,
.sa-input-wrap--pwd input[type="password"]::-ms-clear {
  display: none;
}

.sa-show-pwd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #166161 !important;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
}

.sa-show-pwd .sa-eye-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}

.sa-show-pwd .sa-eye-icon[hidden] {
  display: none !important;
}

.sa-show-pwd:hover,
.sa-show-pwd:focus {
  color: #001f23 !important;
  background: rgba(22, 97, 97, 0.1);
  outline: none;
}

.sa-show-pwd.is-visible {
  color: #0f4545 !important;
}

.sa-login-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 0;
  background: var(--sa-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.sa-login-submit:hover,
.sa-login-submit:focus {
  background: #c49214;
  color: #1a1a1a;
}

.sa-login-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.sa-login-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 18px 0 0;
  font-size: 13px;
}

.sa-login-meta a,
.sa-login-meta a .text-success {
  color: var(--sa-green) !important;
  font-weight: 500;
  text-decoration: underline;
}

.sa-login-meta a:hover {
  color: var(--sa-ink) !important;
}

.sa-field .text-danger {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .sa-login-card {
    flex-direction: column;
    min-height: 0;
    max-width: 460px;
  }

  .sa-login-brand {
    flex: none;
    max-width: none;
    padding: 36px 28px;
    min-height: 0;
    gap: 24px;
  }

  .sa-login-brand h1 {
    font-size: 28px;
  }

  .sa-brand-desc {
    margin-top: 0;
  }

  .sa-login-form {
    padding: 32px 28px 36px;
  }

  .sa-login-form h3 {
    font-size: 28px;
  }
}
