/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.auth-body {
  background: #f6f7fb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Conteneur centré */
.auth-shell {
  width: 100%;
  max-width: 460px; /* largeur pro */
}

/* Card */
.auth-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7eaf0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Corps */
.auth-card .card-body {
  padding: 36px;
}

.auth-form-title {
  font-size: 1.6rem;
  font-weight: 650;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.auth-form-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* Labels + inputs */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
  font-size: 0.85rem;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dbe4;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-control::placeholder {
  color: #9aa4b2;
}

/* Checkbox */
.form-check-input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d7dbe4;
}

.form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.form-check-label {
  color: #64748b;
  font-size: 0.88rem;
}

/* Liens */
a.text-decoration-none {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.88rem;
}

a.text-decoration-none:hover {
  text-decoration: underline;
}

/* Boutons */
.btn-primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 650;
  background: #2563eb;
  border: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline-secondary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 650;
  border: 1px solid #d7dbe4;
  color: #334155;
  background: #fff;
}

.btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #cfd6e3;
}

/* Séparateur */
.text-muted {
  color: #94a3b8 !important;
  font-size: 0.9rem;
}

/* Messages */
.messages {
  margin-bottom: 16px;
}

.message {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 0.9rem;
}

.message.success {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.message.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.message.info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card .card-body {
    padding: 24px;
  }
  .auth-form-title {
    font-size: 1.4rem;
  }
}


/* Login logo sizing */
.login-page .login-logo-frame {
  width: min(190px, 68vw);
  height: 68px;
  max-width: 100%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border-radius: 12px;
}

.login-page .login-logo-frame .cellaro-logo-auth {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 480px) {
  .login-page .login-logo-frame {
    width: min(168px, 64vw);
    height: 60px;
    margin-bottom: 1rem;
  }
}


/* Password eye - page fallback */
.password-field { position: relative !important; width: 100% !important; }
.password-field > .form-control { width: 100% !important; padding-right: 3.25rem !important; }
.password-field > .password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    z-index: 5 !important;
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #64748b !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
}
.password-field > .password-toggle:hover,
.password-field > .password-toggle:focus-visible,
.password-field > .password-toggle.is-visible { background: #eff6ff !important; color: #1768e5 !important; }
.password-field > .password-toggle svg { display: block !important; width: 21px !important; height: 21px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.9 !important; }


/* Password reset completion */
.reset-complete-page .auth-shell { max-width: 460px; }
.reset-complete-page .auth-card .card-body { padding: 34px; }
.reset-complete-page .reset-complete-logo {
    width: min(180px, 64vw);
    height: 64px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 12px;
}
.reset-complete-page .reset-complete-logo .cellaro-logo-auth {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}
.reset-complete-page .auth-form-title { font-size: 1.65rem; }
.reset-complete-page .auth-form-subtitle { margin-bottom: 1.35rem; }
.reset-complete-page .btn-primary { display: inline-flex; width: auto; min-height: 46px; align-items: center; padding-inline: 20px; }
