/* Page connexion — même fond dégradé bleu → vert que l’app (bf-theme) */
.bf-login-page,
.bf-login-page * {
  box-sizing: border-box;
}

.bf-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--bf-font);
  overflow-x: hidden;
  overflow-y: auto;
  /* Fond clair : défini aussi dans bf-theme.css (body.bf-login-page) */
  background: var(--bf-page-gradient);
  background-attachment: fixed;
  color: var(--bf-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px 16px 80px;
}

.bf-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      ellipse at 22% 35%,
      rgba(30, 86, 160, 0.14) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 78% 65%,
      rgba(57, 181, 74, 0.12) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(29, 161, 158, 0.1) 0%,
      transparent 42%
    );
  pointer-events: none;
  z-index: 0;
}

.bf-login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(30, 86, 160, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(30, 86, 160, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bf-login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  animation: bfFadeUp 0.65s ease both;
}

@keyframes bfFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bf-login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.bf-login-brand .brand-name {
  align-items: center;
}

.bf-login-brand-title {
  font-size: clamp(22px, 5.5vw, 30px) !important;
  line-height: 1.15;
}

.bf-login-brand-sub {
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.14em;
}

.bf-login-card {
  background: var(--bf-surface-solid);
  border: 1px solid var(--bf-border-strong);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 48px rgba(30, 86, 160, 0.1);
}

.bf-login-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--bf-text);
  margin-bottom: 26px;
  text-align: center;
}

.bf-login-field {
  position: relative;
  margin-bottom: 14px;
}

.bf-login-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.85;
  pointer-events: none;
}

.bf-login-field input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-border);
  border-radius: 12px;
  color: var(--bf-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.bf-login-field input::placeholder {
  color: var(--bf-dim);
}

.bf-login-field input:focus {
  border-color: rgba(29, 161, 158, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 161, 158, 0.15);
}

.bf-login-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--bf-surface-solid) inset;
  -webkit-text-fill-color: var(--bf-text);
}

.bf-login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  background: var(--bf-gradient);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.bf-login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 86, 160, 0.28);
}

.bf-login-btn:active:not(:disabled) {
  transform: translateY(0);
}

.bf-login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.bf-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.bf-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--bf-muted);
}

.bf-login-remember input {
  width: 15px;
  height: 15px;
  accent-color: #1da19e;
  cursor: pointer;
}

.bf-login-forgot {
  font-size: 13px;
  color: var(--bf-blue);
  text-decoration: none;
  font-style: italic;
}

.bf-login-forgot:hover {
  color: var(--bf-teal);
}

.bf-login-error {
  display: none;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #b91c1c;
  margin-top: 16px;
  text-align: center;
}

.bf-login-error.bf-show {
  display: block;
}

.bf-login-banner {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 18px;
  text-align: center;
}

.bf-login-banner[hidden] {
  display: none !important;
}

.bf-login-back {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.bf-login-back a {
  color: var(--bf-blue);
  text-decoration: none;
}

.bf-login-back a:hover {
  color: var(--bf-teal);
}
